1
0
forked from extern/smegmesh
Adding retry parameter
This commit is contained in:
Tim Beatham 2023-12-29 01:10:26 +00:00
parent d2c8a52ec6
commit cabe173831
2 changed files with 4 additions and 4 deletions

View File

@ -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" ]
}
}]}`

View File

@ -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