Skip to content

Commit

Permalink
Delete correct spend unhook.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrm50 committed Apr 19, 2024
1 parent eaee897 commit ecebf07
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ func (c *SpendDAG[SpenderID, ResourceID, VoteRank]) evictSpender(spenderID Spend
unhookFunc, unhookExists := c.spendUnhooks.Get(spenderID)
if unhookExists {
unhookFunc()
c.spendUnhooks.Delete(spenderID)
c.spendUnhooks.Delete(evictedSpenderID)
}
}

Expand Down

0 comments on commit ecebf07

Please sign in to comment.