Skip to content
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

Merged
merged 1 commit into from
Sep 12, 2024
Merged

FIX: types/stream: change errorf to warnf #1742

merged 1 commit into from
Sep 12, 2024

Conversation

c9s
Copy link
Owner

@c9s c9s commented Sep 12, 2024

No description provided.

@bbgokarma-bot
Copy link

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)
Copy link
Owner Author

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)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改 Warnf

@c9s c9s enabled auto-merge September 12, 2024 09:37
@c9s c9s merged commit 0d6b7b2 into main Sep 12, 2024
3 checks passed
@c9s c9s deleted the c9s/fix-ws-close-err branch September 12, 2024 09:46
@bbgokarma-bot
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants