Skip to content

Commit f8992de

Browse files
committed
fix: bad sprintf syntax
There is no Stringer on the channel struct, so using %s causes an error. Using %v to print the default representation instead.
1 parent d4ae523 commit f8992de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pubsub.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ func (c *channel) initMsgChan() {
734734
}
735735
case <-timer.C:
736736
internal.Logger.Printf(
737-
ctx, "redis: %s channel is full for %s (message is dropped)",
737+
ctx, "redis: %v channel is full for %s (message is dropped)",
738738
c, c.chanSendTimeout)
739739
}
740740
default:
@@ -788,7 +788,7 @@ func (c *channel) initAllChan() {
788788
}
789789
case <-timer.C:
790790
internal.Logger.Printf(
791-
ctx, "redis: %s channel is full for %s (message is dropped)",
791+
ctx, "redis: %v channel is full for %s (message is dropped)",
792792
c, c.chanSendTimeout)
793793
}
794794
default:

0 commit comments

Comments
 (0)