Skip to content

Commit

Permalink
feat: gofumpt
Browse files Browse the repository at this point in the history
  • Loading branch information
rach-id committed Oct 8, 2024
1 parent a490a04 commit 020787b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc/grpc/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func (blockAPI *BlockAPI) removeHeightListener(ch chan NewHeightEvent) {
func (blockAPI *BlockAPI) closeAllListeners() {
blockAPI.Lock()
defer blockAPI.Unlock()
for chanel, _ := range blockAPI.heightListeners {
delete(blockAPI.heightListeners, chanel)
close(chanel)
for channel := range blockAPI.heightListeners {
delete(blockAPI.heightListeners, channel)
close(channel)
}
}

Expand Down

0 comments on commit 020787b

Please sign in to comment.