Skip to content

Commit

Permalink
chore: use bytes.Equal(canaryLog, log) instead
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Oct 30, 2023
1 parent 06a5225 commit 1b8e202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func (m *_monitor) readloop(

log := logbuf[0:nread]

if bytes.Compare(canaryLog, log) == 0 {
if bytes.Equal(canaryLog, log) {
m.log.Debugf("received 'unexpect stream type'")
continue
}
Expand Down

0 comments on commit 1b8e202

Please sign in to comment.