Skip to content

Commit

Permalink
[fix] Restored method as deprecated in AbstractMetadataStore (apache#…
Browse files Browse the repository at this point in the history
…21950)

Co-authored-by: Jiwe Guo <[email protected]>
  • Loading branch information
merlimat and Technoboy- authored Jan 24, 2024
1 parent 1b5550d commit 4198ed2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,14 @@ public CompletableFuture<Void> handleMetadataEvent(MetadataEvent event) {
return result;
}

/**
* @deprecated Use {@link #registerSyncListener(Optional)} instead.
*/
@Deprecated
protected void registerSyncLister(Optional<MetadataEventSynchronizer> synchronizer) {
this.registerSyncListener(synchronizer);
}

protected void registerSyncListener(Optional<MetadataEventSynchronizer> synchronizer) {
synchronizer.ifPresent(s -> s.registerSyncListener(this::handleMetadataEvent));
}
Expand Down

0 comments on commit 4198ed2

Please sign in to comment.