Skip to content

Commit 3d572e1

Browse files
committed
fix unused endpoint
1 parent a9d5e66 commit 3d572e1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

stats/user_latency_tracker.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ package stats
22

33
import (
44
"context"
5-
"github.com/sei-protocol/sei-load/utils"
65
"log"
76
"math/big"
87
"sort"
98
"time"
109

1110
"github.com/ethereum/go-ethereum/ethclient"
11+
12+
"github.com/sei-protocol/sei-load/utils"
1213
)
1314

1415
// UserLatencyTracker tracks user latency by analyzing block transactions
1516
type UserLatencyTracker struct {
16-
endpoint string
1717
interval time.Duration
1818
}
1919

@@ -26,11 +26,8 @@ func NewUserLatencyTracker(interval time.Duration) *UserLatencyTracker {
2626

2727
// Run starts the user latency tracking loop
2828
func (ult *UserLatencyTracker) Run(ctx context.Context, endpoint string) error {
29-
ult.endpoint = endpoint
30-
3129
// Create ticker for the configured interval
3230
ticker := time.NewTicker(ult.interval)
33-
defer ticker.Stop()
3431

3532
// Connect to the endpoint
3633
client, err := ethclient.Dial(endpoint)

0 commit comments

Comments
 (0)