ethstats: fix function comments #25726 (#1449)

This commit is contained in:
Daniel Liu 2025-09-08 15:40:07 +08:00 committed by GitHub
parent bf6011fc06
commit 1bd4eaab88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,13 +111,16 @@ type Service struct {
// //
// From Gorilla websocket docs: // From Gorilla websocket docs:
// //
// Connections support one concurrent reader and one concurrent writer. // Connections support one concurrent reader and one concurrent writer. Applications are
// Applications are responsible for ensuring that no more than one goroutine calls the write methods // responsible for ensuring that
// - NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression, SetCompressionLevel // - no more than one goroutine calls the write methods
// concurrently and that no more than one goroutine calls the read methods // NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression,
// - NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler // SetCompressionLevel concurrently; and
// concurrently. // - that no more than one goroutine calls the
// The Close and WriteControl methods can be called concurrently with all other methods. // read methods NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler,
// SetPingHandler concurrently.
//
// The Close and WriteControl methods can be called concurrently with all other methods.
type connWrapper struct { type connWrapper struct {
conn *websocket.Conn conn *websocket.Conn