forked from extern/smegmesh
main
Adding retry parameter
This commit is contained in:
parent
d2c8a52ec6
commit
cabe173831
@ -51,10 +51,10 @@ func (c *WgCtrlConnection) CreateGrpcConnection() error {
|
||||
"waitForReady": true,
|
||||
"retryPolicy": {
|
||||
"MaxAttempts": 2,
|
||||
"InitialBackoff": ".01s",
|
||||
"MaxBackoff": ".01s",
|
||||
"InitialBackoff": ".1s",
|
||||
"MaxBackoff": ".1s",
|
||||
"BackoffMultiplier": 1.0,
|
||||
"RetryableStatusCodes": [ "UNAVAILABLE" ]
|
||||
"RetryableStatusCodes": [ "UNAVAILABLE", "DEADLINE_EXCEEDED", "UNKNOWN" ]
|
||||
}
|
||||
}]}`
|
||||
|
||||
|
@ -96,7 +96,7 @@ func (s *SyncerImpl) Sync(meshId string) error {
|
||||
|
||||
if err == nil || err == io.EOF {
|
||||
succeeded = true
|
||||
} else {
|
||||
} else if self.GetType() == conf.PEER_ROLE {
|
||||
// If the synchronisation operation has failed them mark a gravestone
|
||||
// preventing the peer from being re-contacted until it has updated
|
||||
// itself
|
||||
|
Loading…
Reference in New Issue
Block a user