Skip to content

Commit 2ac06af

Browse files
committed
change to pointer
1 parent b60f697 commit 2ac06af

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Diff for: avssync/avssync.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
)
1717

1818
type AvsSync struct {
19-
AvsReader avsregistry.ChainReader
20-
AvsWriter avsregistry.ChainWriter
19+
AvsReader *avsregistry.ChainReader
20+
AvsWriter *avsregistry.ChainWriter
2121
RetrySyncNTimes int
2222

2323
logger sdklogging.Logger
@@ -40,7 +40,7 @@ type AvsSync struct {
4040
// fetchQuorumsDynamically - if true, fetch the list of quorums registered in the contract and update all of them (only needed if operators is not empty)
4141
func NewAvsSync(
4242
logger sdklogging.Logger,
43-
avsReader avsregistry.ChainReader, avsWriter avsregistry.ChainWriter,
43+
avsReader *avsregistry.ChainReader, avsWriter *avsregistry.ChainWriter,
4444
sleepBeforeFirstSyncDuration time.Duration, syncInterval time.Duration, operators []common.Address,
4545
quorums []byte, fetchQuorumsDynamically bool, retrySyncNTimes int,
4646
readerTimeoutDuration time.Duration, writerTimeoutDuration time.Duration,

Diff for: integration_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ func NewAvsSyncComponents(t *testing.T, anvilHttpEndpoint string, contractAddres
410410

411411
avsSync := avssync.NewAvsSync(
412412
logger,
413-
*avsReader,
414-
*avsWriter,
413+
avsReader,
414+
avsWriter,
415415
0*time.Second,
416416
syncInterval,
417417
operators,

Diff for: main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ func avsSyncMain(cliCtx *cli.Context) error {
222222

223223
avsSync := avssync.NewAvsSync(
224224
logger,
225-
*avsReader,
226-
*avsWriter,
225+
avsReader,
226+
avsWriter,
227227
sleepBeforeFirstSyncDuration,
228228
cliCtx.Duration(SyncIntervalFlag.Name),
229229
operators,

0 commit comments

Comments
 (0)