From dfaac799a23f7c3d9cb7ad6904dcd0e580c33e83 Mon Sep 17 00:00:00 2001 From: finaltrip Date: Mon, 3 Jun 2024 23:14:18 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: finaltrip --- util/arbmath/math.go | 2 +- wsbroadcastserver/clientconnection.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/util/arbmath/math.go b/util/arbmath/math.go index d7a0d1f523..7413955409 100644 --- a/util/arbmath/math.go +++ b/util/arbmath/math.go @@ -305,7 +305,7 @@ func SaturatingUSub[T Unsigned](a, b T) T { return a - b } -// SaturatingMul multiply two integers without over/underflow +// SaturatingUMul multiply two integers without over/underflow func SaturatingUMul[T Unsigned](a, b T) T { product := a * b if b != 0 && product/b != a { diff --git a/wsbroadcastserver/clientconnection.go b/wsbroadcastserver/clientconnection.go index 6f5bf54e4d..ba70756c98 100644 --- a/wsbroadcastserver/clientconnection.go +++ b/wsbroadcastserver/clientconnection.go @@ -302,7 +302,7 @@ func (cc *ClientConnection) Receive(ctx context.Context, timeout time.Duration) return msg, op, err } -// readRequests reads json-rpc request from connection. +// readRequest reads json-rpc request from connection. func (cc *ClientConnection) readRequest(ctx context.Context, timeout time.Duration) ([]byte, ws.OpCode, error) { cc.ioMutex.Lock() defer cc.ioMutex.Unlock()