storage/memorybysubnet: bench with masks
This commit is contained in:
parent
c37311e8c7
commit
85d7d9c677
1 changed files with 4 additions and 2 deletions
|
@ -9,8 +9,10 @@ import (
|
||||||
|
|
||||||
func createNew() s.PeerStore {
|
func createNew() s.PeerStore {
|
||||||
ps, err := New(Config{
|
ps, err := New(Config{
|
||||||
ShardCount: 1024,
|
ShardCount: 1024,
|
||||||
GarbageCollectionInterval: 10 * time.Minute,
|
GarbageCollectionInterval: 10 * time.Minute,
|
||||||
|
PreferredIPv4SubnetMaskBitsSet: 31,
|
||||||
|
PreferredIPv6SubnetMaskBitsSet: 64,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|
Loading…
Add table
Reference in a new issue