Remove setting default client timeout in peer.NewStore
This commit is contained in:
parent
95eb94f5a7
commit
52127eee7c
1 changed files with 0 additions and 3 deletions
|
@ -22,9 +22,6 @@ type StoreOpts struct {
|
||||||
|
|
||||||
// NewStore makes a new peer store.
|
// NewStore makes a new peer store.
|
||||||
func NewStore(opts StoreOpts) *Store {
|
func NewStore(opts StoreOpts) *Store {
|
||||||
if opts.Timeout == 0 {
|
|
||||||
opts.Timeout = time.Second * 5
|
|
||||||
}
|
|
||||||
c := &Client{Timeout: opts.Timeout}
|
c := &Client{Timeout: opts.Timeout}
|
||||||
err := c.Connect(opts.Address)
|
err := c.Connect(opts.Address)
|
||||||
return &Store{client: c, connErr: err}
|
return &Store{client: c, connErr: err}
|
||||||
|
|
Loading…
Reference in a new issue