Skip to content

Commit

Permalink
chore: revert closing channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Nov 9, 2024
1 parent d2af6bd commit cf225ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/grpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func (blockAPI *BlockAPI) removeHeightListener(ch chan NewHeightEvent) {
blockAPI.Lock()
defer blockAPI.Unlock()
delete(blockAPI.heightListeners, ch)
close(ch)
}

func (blockAPI *BlockAPI) closeAllListeners() {
Expand Down

0 comments on commit cf225ab

Please sign in to comment.