Skip to content

Commit 09ee57d

Browse files
committed
buffered channel
1 parent f6af133 commit 09ee57d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func main() {
128128

129129
var (
130130
mb *hashbot.HashBot
131-
invalidatedTokenCh = make(chan bool)
131+
invalidatedTokenCh = make(chan bool, 1)
132132
)
133133
mb, err = hashbot.NewHashBot(cfg, db, invalidatedTokenCh)
134134
if err != nil {

0 commit comments

Comments
 (0)