Skip to content

Commit 75f22ab

Browse files
committed
lint
1 parent 3c29ad6 commit 75f22ab

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

sender/worker.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ func (w *Worker) sendTransaction(ctx context.Context, client *http.Client, tx *t
193193
// Limit read to prevent memory issues with large responses
194194
_, err = io.CopyN(io.Discard, resp.Body, 64*1024) // Read up to 64KB
195195
if err != nil && err != io.EOF {
196+
log.Printf("Worker %d: Failed to read response body: %v", w.id, err)
196197
// Log but don't fail - this is just for connection reuse
197198
}
198199

stats/logger.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"github.com/sei-protocol/sei-load/utils"
66
"log"
7-
"sync"
87
"time"
98
)
109

@@ -13,10 +12,6 @@ type Logger struct {
1312
collector *Collector
1413
interval time.Duration
1514
debug bool
16-
17-
// Dry-run transaction logging
18-
txCounter uint64
19-
txCounterMu sync.Mutex
2015
}
2116

2217
// NewLogger creates a new statistics logger

0 commit comments

Comments
 (0)