File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ package stats
22
33import (
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
1516type 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
2828func (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 )
You can’t perform that action at this time.
0 commit comments