storage: add PeerLifetime to test config

This commit is contained in:
Leo Balduf 2017-08-17 23:35:20 +02:00
parent 3799b856c2
commit df7b59e2f3
2 changed files with 2 additions and 1 deletions

View file

@ -9,7 +9,7 @@ import (
)
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 {
panic(err)
}

View file

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