Skip to content

Commit

Permalink
Update data-plane/receiver/src/main/java/dev/knative/eventing/kafka/b…
Browse files Browse the repository at this point in the history
…roker/receiver/impl/auth/OIDCDiscoveryConfigListener.java

Co-authored-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
matzew and pierDipi authored Nov 6, 2024
1 parent 26b2628 commit ffe7c89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public OIDCDiscoveryConfig getOidcDiscoveryConfig() {
return oidcDiscoveryConfig.get();
}

public int registerCallback(Consumer<OIDCDiscoveryConfig> callback) {
public synchronized int registerCallback(Consumer<OIDCDiscoveryConfig> callback) {
this.callbacks.add(callback);
return this.callbacks.size() - 1;
}
Expand Down

0 comments on commit ffe7c89

Please sign in to comment.