commit | c449ba153358150927cb8d88e77f2b3d60d63ecc | [log] [tgz] |
---|---|---|
author | Edwin Kempin <ekempin@google.com> | Mon Jul 01 10:01:48 2019 +0200 |
committer | Edwin Kempin <ekempin@google.com> | Mon Jul 01 10:02:35 2019 +0200 |
tree | 756b9919784473f471179398c36d6a0dd5d66058 | |
parent | 0ae2671124a94d8ec65966b653281759e271f339 [diff] |
Adapt to change in Gerrit core that added generic types to time contexts Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: I9211126517f1b0f6f669711aa7da351ca8cec82a
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java index 168c95f..05bb31a 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/PushOne.java
@@ -314,7 +314,7 @@ } repLog.info("Replication to {} started...", uri); - Timer1.Context context = metrics.start(config.getName()); + Timer1.Context<String> context = metrics.start(config.getName()); try { long startedAt = context.getStartTime(); long delay = NANOSECONDS.toMillis(startedAt - createdAt);
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationMetrics.java b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationMetrics.java index 3b71f80..cda82f3 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationMetrics.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/ReplicationMetrics.java
@@ -63,7 +63,7 @@ * @param name the destination name. * @return the timer context. */ - Timer1.Context start(String name) { + Timer1.Context<String> start(String name) { return executionTime.start(name); }