Skip to content

Commit

Permalink
Router: remove unnecessary warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Nov 15, 2023
1 parent 6b2994b commit bb3a58c
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ public void runJob() {
// a leaseSet which it is the owner/publisher of.
// Look up a ls hash in the netDbSegmentor, and compare it to the _facade that we have.
// If they are equal, reject the store.
if ((getContext().netDbSegmentor().clientNetDB(ls.getHash())).equals(_facade)) {
if (_log.shouldLog(Log.WARN))
_log.warn("Attempt to store the leaseSet associated with our own client sub DB");
if (getContext().netDbSegmentor().clientNetDB(ls.getHash()).equals(_facade)) {
getContext().statManager().addRateData("netDb.storeLocalLeaseSetToLocalClient", 1, 0);
dontBlamePeer = true;
throw new IllegalArgumentException("(dbid: " + _facade._dbid
Expand Down

0 comments on commit bb3a58c

Please sign in to comment.