forked from External/ergo
refactor channel registration
This commit is contained in:
parent
29db70fa7b
commit
63029e2ff5
21 changed files with 420 additions and 226 deletions
|
|
@ -23,12 +23,10 @@ type WhoWasList struct {
|
|||
}
|
||||
|
||||
// NewWhoWasList returns a new WhoWasList
|
||||
func NewWhoWasList(size int) *WhoWasList {
|
||||
return &WhoWasList{
|
||||
buffer: make([]WhoWas, size),
|
||||
start: -1,
|
||||
end: -1,
|
||||
}
|
||||
func (list *WhoWasList) Initialize(size int) {
|
||||
list.buffer = make([]WhoWas, size)
|
||||
list.start = -1
|
||||
list.end = -1
|
||||
}
|
||||
|
||||
// Append adds an entry to the WhoWasList.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue