From dfaac799a23f7c3d9cb7ad6904dcd0e580c33e83 Mon Sep 17 00:00:00 2001 From: finaltrip Date: Mon, 3 Jun 2024 23:14:18 +0800 Subject: [PATCH 1/2] 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() From e8fba1a59264cecb068da95d72f2f75acf002842 Mon Sep 17 00:00:00 2001 From: Nodar Ambroladze Date: Mon, 3 Jun 2024 18:23:13 +0200 Subject: [PATCH 2/2] Disable profiling sequencer by default --- execution/gethexec/sequencer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/execution/gethexec/sequencer.go b/execution/gethexec/sequencer.go index db3daca61d..a0623a8aed 100644 --- a/execution/gethexec/sequencer.go +++ b/execution/gethexec/sequencer.go @@ -132,7 +132,7 @@ var DefaultSequencerConfig = SequencerConfig{ NonceFailureCacheExpiry: time.Second, ExpectedSurplusSoftThreshold: "default", ExpectedSurplusHardThreshold: "default", - EnableProfiling: true, + EnableProfiling: false, } var TestSequencerConfig = SequencerConfig{