forked from External/ergo
WHOWAS: Make maximum number of entries configurable
This commit is contained in:
parent
6e66c5c8a7
commit
43553390d6
5 changed files with 10 additions and 5 deletions
|
|
@ -18,7 +18,7 @@ type WhoWas struct {
|
|||
|
||||
func NewWhoWasList(size uint) *WhoWasList {
|
||||
return &WhoWasList{
|
||||
buffer: make([]*WhoWas, size),
|
||||
buffer: make([]*WhoWas, size+1),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue