in tracker/peerstore/config.go [55:80]
func (c *RedisConfig) applyDefaults() {
if c.DialTimeout == 0 {
c.DialTimeout = 5 * time.Second
}
if c.ReadTimeout == 0 {
c.ReadTimeout = 30 * time.Second
}
if c.WriteTimeout == 0 {
c.WriteTimeout = 30 * time.Second
}
if c.PeerSetWindowSize == 0 {
c.PeerSetWindowSize = time.Hour
}
if c.MaxPeerSetWindows == 0 {
c.MaxPeerSetWindows = 5
}
if c.MaxIdleConns == 0 {
c.MaxIdleConns = 10
}
if c.MaxActiveConns == 0 {
c.MaxActiveConns = 500
}
if c.IdleConnTimeout == 0 {
c.IdleConnTimeout = 60 * time.Second
}
}