storage/memorybysubnet: bench with masks

This commit is contained in:
Jimmy Zelinskie 2017-05-03 22:40:27 -04:00
parent c37311e8c7
commit 85d7d9c677

View file

@ -9,8 +9,10 @@ import (
func createNew() s.PeerStore {
ps, err := New(Config{
ShardCount: 1024,
GarbageCollectionInterval: 10 * time.Minute,
ShardCount: 1024,
GarbageCollectionInterval: 10 * time.Minute,
PreferredIPv4SubnetMaskBitsSet: 31,
PreferredIPv6SubnetMaskBitsSet: 64,
})
if err != nil {
panic(err)