implemented timeout for an initial GetSeed call.
Added RPC.Endpoint.Authority
This commit is contained in:
@ -51,8 +51,9 @@ type RPCServiceConfig struct { // rpc server-side configuration
|
||||
}
|
||||
|
||||
type RPCEndpointConfig struct { // rpc client-side configuration
|
||||
Authority string `yaml:"authority"`
|
||||
Addrs []string `yaml:"addresses"`
|
||||
Authority string `yaml:"authority"`
|
||||
Addrs []string `yaml:"addresses"`
|
||||
SeedTimeout int `yaml:"seed-timeout"`
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
|
@ -226,6 +226,8 @@ func client_main(ctl_addrs []string, rpc_addrs []string, peer_addrs []string, cf
|
||||
|
||||
cc.ServerAddrs = rpc_addrs
|
||||
cc.PeerAddrs = peer_addrs
|
||||
cc.ServerSeedTimeout = cfg.RPC.Endpoint.SeedTimeout
|
||||
cc.ServerAuthority = cfg.RPC.Endpoint.Authority
|
||||
|
||||
c.StartService(&cc)
|
||||
c.StartCtlService() // control channel
|
||||
|
Reference in New Issue
Block a user