mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-03-30 15:08:33 +00:00
Decrease grpc client dial timeout to one second (#1378)
This commit is contained in:
parent
82d95c59a3
commit
256b7f25f1
@ -24,7 +24,7 @@ type GRPCClient struct {
|
||||
|
||||
// Connect connects to the RPC server with the given address
|
||||
func Connect(address string) (*GRPCClient, error) {
|
||||
const dialTimeout = 30 * time.Second
|
||||
const dialTimeout = 1 * time.Second
|
||||
ctx, cancel := context.WithTimeout(context.Background(), dialTimeout)
|
||||
defer cancel()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user