Skip to content

Commit

Permalink
[fix] Restored method as deprecated in AbstractMetadataStore (#21950)
Browse files Browse the repository at this point in the history
Co-authored-by: Jiwe Guo <technoboy@apache.org>
  • Loading branch information
merlimat and Technoboy- committed Jan 27, 2024
1 parent 0a25753 commit f9e0237
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 f9e0237

Please sign in to comment.