Fixed wrong cloning of TraceFeignRetryer

ATM we're cloning the retryer with the default retryer as a delegate. We should be honouring the retryer that the user has provided.

Fixes #291
This commit is contained in:
Marcin Grzejszczak
2016-05-27 08:19:18 +02:00
parent 358d0b16b5
commit 00d06a17c0

View File

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