Cloning the Retryer

@dpalita's suggested that since Default Retryer implemenation is not thread-safe we have to clone the delegate. And obviously he's right!
This commit is contained in:
Marcin Grzejszczak
2016-05-27 08:52:47 +02:00
parent 00d06a17c0
commit 0a0d36053d

View File

@@ -62,6 +62,6 @@ final class TraceFeignRetryer implements Retryer {
@Override
public Retryer clone() {
return new TraceFeignRetryer(this.tracer, this.delegate);
return new TraceFeignRetryer(this.tracer, this.delegate.clone());
}
}