Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Yun committed Aug 26, 2019
1 parent 5c9eaa7 commit 99ba81e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/lcd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ func (rs *RestServer) Start(listenAddr string, maxOpen int, readTimeout, writeTi
rs.log.Error("error closing listener", "err", err)
})

cfg := &rpcserver.Config{
MaxOpenConnections: maxOpen,
ReadTimeout: time.Duration(readTimeout) * time.Second,
WriteTimeout: time.Duration(writeTimeout) * time.Second,
}
cfg := rpcserver.DefaultConfig()
cfg.MaxOpenConnections = maxOpen
cfg.ReadTimeout = time.Duration(readTimeout) * time.Second
cfg.WriteTimeout = time.Duration(writeTimeout) * time.Second

rs.listener, err = rpcserver.Listen(listenAddr, cfg)
if err != nil {
Expand Down

0 comments on commit 99ba81e

Please sign in to comment.