Skip to content

Commit

Permalink
electrumx: fix removing conn from pool (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing authored Aug 21, 2024
1 parent 50baed1 commit 217419f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hemi/electrumx/conn_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (p *connPool) onClose(conn *clientConn) {

p.poolMx.Lock()
// Remove the connection from the pool.
slices.DeleteFunc(p.pool, func(c *clientConn) bool {
p.pool = slices.DeleteFunc(p.pool, func(c *clientConn) bool {
return c == conn
})
p.poolMx.Unlock()
Expand Down

0 comments on commit 217419f

Please sign in to comment.