split up library and removed Stop() panic when called twice
This commit is contained in:
parent
6e61945c2c
commit
826d035d3e
4 changed files with 117 additions and 100 deletions
|
|
@ -22,7 +22,7 @@ type MemBlacklist struct {
|
|||
list BlacklistMap
|
||||
}
|
||||
|
||||
// NewMemBlacklist
|
||||
// NewMemBlacklist implements the Blacklist interface using an in-memory map
|
||||
func NewMemBlacklist() *MemBlacklist {
|
||||
return &MemBlacklist{list: make(BlacklistMap)}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue