Skip to content

Commit a52137e

Browse files
committed
added additional transient
1 parent 44b1613 commit a52137e

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

compose.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@ version: '3'
22

33
services:
44
etcd:
5-
# image: bitnamilegacy/etcd:3.5
6-
# environment:
7-
# - ALLOW_NONE_AUTHENTICATION=yes
8-
# - ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379
9-
# ports:
10-
# - "2379:2379"
11-
# - "2380:2380"
125
image: quay.io/coreos/etcd:v3.5.0
136
container_name: etcd
147
environment:

src/retry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use {
1515
///
1616
pub fn is_transient(err: &etcd_client::Error) -> bool {
1717
match err {
18+
etcd_client::Error::TransportError(_) => true,
1819
etcd_client::Error::GRpcStatus(status) => match status.code() {
1920
tonic::Code::Ok => false,
2021
tonic::Code::Cancelled => false,

0 commit comments

Comments
 (0)