update to streamrpc 0.4 & adjust config (not breaking)

This commit is contained in:
Christian Schwarz
2018-09-23 20:28:30 +02:00
parent 9dd662df08
commit 4a6160baf3
5 changed files with 21 additions and 7 deletions
+2 -3
View File
@@ -15,9 +15,8 @@ func FromDaemonConfig(g *config.Global, in *config.RPCConfig) (*streamrpc.ConnCo
RxStructuredMaxLen: conf.RxStructuredMaxLen,
RxStreamMaxChunkSize: conf.RxStreamChunkMaxLen,
TxChunkSize: conf.TxChunkSize,
Timeout: streamrpc.Timeout{
Progress: conf.Timeout,
},
Timeout: conf.Timeout,
SendHeartbeatInterval: conf.SendHeartbeatInterval,
}
if err := srpcConf.Validate(); err != nil {
return nil, err