No need to check map before removing a key.

This commit is contained in:
Josh Rickmar 2014-06-16 15:32:08 -05:00
parent aa6892a32a
commit afee3e2ca7

View file

@ -2790,9 +2790,7 @@ func StoreNotifiedMempoolRecvTxs(add, remove chan btcwire.OutPoint,
m[op] = struct{}{}
case op := <-remove:
if _, ok := m[op]; ok {
delete(m, op)
}
delete(m, op)
case req := <-access:
_, ok := m[req.op]