Skip to content

Commit

Permalink
deps: update dependency com.google.cloud:google-cloud-shared-dependen…
Browse files Browse the repository at this point in the history
…cies to v3.1.0 (#1436)

* deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.1.0

* fix: update the pubsub fake executor to cancel a pending callables future when cancelled

Co-authored-by: hannahrogers-google <[email protected]>
  • Loading branch information
renovate-bot and hannahrogers-google committed Dec 14, 2022
1 parent 786c493 commit a40337b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ public int compareTo(Delayed o) {
@Override
public boolean cancel(boolean mayInterruptIfRunning) {
synchronized (this) {
future.cancel(mayInterruptIfRunning);
cancelled.set(true);
return !done.get();
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-shared-dependencies</artifactId>
<version>3.0.6</version>
<version>3.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down

0 comments on commit a40337b

Please sign in to comment.