File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
google-cloud-spanner/src/main/java/com/google/cloud/spanner Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 2323import com .google .common .collect .ImmutableList ;
2424import java .util .ArrayList ;
2525import java .util .List ;
26- import org .threeten .bp .Duration ;
26+
27+ import static com .google .api .gax .util .TimeConversionUtils .toJavaTimeDuration ;
2728
2829@ InternalApi
2930public class CompositeTracer extends BaseApiTracer {
@@ -108,9 +109,14 @@ public void attemptCancelled() {
108109 }
109110
110111 @ Override
111- public void attemptFailed (Throwable error , Duration delay ) {
112+ public void attemptFailed (Throwable error , org .threeten .bp .Duration delay ) {
113+ attemptFailedDuration (error , toJavaTimeDuration (delay ));
114+ }
115+
116+ @ Override
117+ public void attemptFailedDuration (Throwable error , java .time .Duration delay ) {
112118 for (ApiTracer child : children ) {
113- child .attemptFailed (error , delay );
119+ child .attemptFailedDuration (error , delay );
114120 }
115121 }
116122
You can’t perform that action at this time.
0 commit comments