Skip to content

Commit

Permalink
Fix incorrect instanceof check
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikJannsen committed Mar 31, 2024
1 parent e240aa0 commit d79cf3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

import bisq.bonded_roles.BondedRoleType;
import bisq.bonded_roles.bonded_role.AuthorizedBondedRolesService;
import bisq.bonded_roles.release.ReleaseNotification;
import bisq.common.application.Service;
import bisq.identity.Identity;
import bisq.network.NetworkService;
Expand Down Expand Up @@ -114,7 +113,7 @@ public void onMessage(EnvelopePayloadMessage envelopePayloadMessage) {

@Override
public void onAuthorizedDataAdded(AuthorizedData authorizedData) {
if (authorizedData.getAuthorizedDistributedData() instanceof ReleaseNotification) {
if (authorizedData.getAuthorizedDistributedData() instanceof AuthorizedTimestampData) {
if (isAuthorized(authorizedData)) {
AuthorizedTimestampData authorizedTimestampData = (AuthorizedTimestampData) authorizedData.getAuthorizedDistributedData();
// We might get data published from other oracle nodes and put it into our local store.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public void onAuthorizedDataAdded(AuthorizedData authorizedData) {
try {
listener.onAuthorizedDataAdded(authorizedData);
} catch (Exception e) {
log.error("Error at onAuthorizedDataAdded", e);
log.error("Error at listener.onAuthorizedDataAdded. listener={}", listener, e);
}
});
}
Expand Down

0 comments on commit d79cf3f

Please sign in to comment.