-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
FIX: types/stream: change errorf to warnf #1742
Conversation
Welcome back! @c9s, This pull request may get 205 BBG. |
@@ -249,7 +249,7 @@ func (s *StandardStream) Read(ctx context.Context, conn *websocket.Conn, cancel | |||
|
|||
default: | |||
if err := conn.SetReadDeadline(time.Now().Add(readTimeout)); err != nil { | |||
log.WithError(err).Errorf("set read deadline error: %s", err.Error()) | |||
log.WithError(err).Errorf("unable to set read deadline: %v", err) |
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.
這個先留原本的
@@ -352,7 +352,7 @@ func (s *StandardStream) ping( | |||
} | |||
|
|||
if err := conn.WriteControl(websocket.PingMessage, nil, time.Now().Add(writeTimeout)); err != nil { | |||
log.WithError(err).Error("ping error", err) | |||
log.WithError(err).Warnf("unable to write ws control message, ping error: %v", err) |
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.
改 Warnf
Hi @c9s, Well done! 230 BBG has been sent to your polygon wallet. Please check the following tx: https://polygonscan.com/tx/0x1a30938b2a85af20292ab2f2781080ee29f42afca64d23af2ab354d2abb8e0fd Thank you for your contribution! |
No description provided.