Merge pull request #348 from mrd0ll4r/memorybench

storage: add PeerLifetime to test config
This commit is contained in:
mrd0ll4r 2017-08-18 12:52:58 +02:00 committed by GitHub
commit d026424038
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ import (
) )
func createNew() s.PeerStore { func createNew() s.PeerStore {
ps, err := New(Config{ShardCount: 1024, GarbageCollectionInterval: 10 * time.Minute, PrometheusReportingInterval: 10 * time.Minute}) ps, err := New(Config{ShardCount: 1024, GarbageCollectionInterval: 10 * time.Minute, PrometheusReportingInterval: 10 * time.Minute, PeerLifetime: 30 * time.Minute})
if err != nil { if err != nil {
panic(err) panic(err)
} }

View file

@ -11,6 +11,7 @@ func createNew() s.PeerStore {
ps, err := New(Config{ ps, err := New(Config{
ShardCount: 1024, ShardCount: 1024,
GarbageCollectionInterval: 10 * time.Minute, GarbageCollectionInterval: 10 * time.Minute,
PeerLifetime: 30 * time.Minute,
PreferredIPv4SubnetMaskBitsSet: 31, PreferredIPv4SubnetMaskBitsSet: 31,
PreferredIPv6SubnetMaskBitsSet: 64, PreferredIPv6SubnetMaskBitsSet: 64,
}) })