-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG:dynamicbanscore deadlock #1509
Conversation
Nice find! Could you add a test for the |
OK, no problem. 530ea00 |
connmgr/dynamicbanscore_test.go
Outdated
if r != 150 { | ||
t.Errorf("Unexpected result %d after ban score increase.", r) | ||
} | ||
fmt.Println(bs.String()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than using fmt here, you could do t.Log
or t.Logf
and I think it should still work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍OK. c982d9b
@jcvernaleo (as per #1530)
Mergable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@lochjin would you be able to squash this to a single commit and then I'll merge it? |
OK |
Looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
#1510