File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,10 +69,9 @@ type Syncer struct {
6969 logger zerolog.Logger
7070
7171 // Lifecycle
72- ctx context.Context
73- cancel context.CancelFunc
74- wg sync.WaitGroup
75- retriesBeforeHalt map [uint64 ]uint64
72+ ctx context.Context
73+ cancel context.CancelFunc
74+ wg sync.WaitGroup
7675}
7776
7877// NewSyncer creates a new block syncer
@@ -91,21 +90,20 @@ func NewSyncer(
9190 errorCh chan <- error ,
9291) * Syncer {
9392 return & Syncer {
94- store : store ,
95- exec : exec ,
96- da : da ,
97- cache : cache ,
98- metrics : metrics ,
99- config : config ,
100- genesis : genesis ,
101- options : options ,
102- headerStore : headerStore ,
103- dataStore : dataStore ,
104- lastStateMtx : & sync.RWMutex {},
105- heightInCh : make (chan common.DAHeightEvent , 10_000 ),
106- errorCh : errorCh ,
107- logger : logger .With ().Str ("component" , "syncer" ).Logger (),
108- retriesBeforeHalt : make (map [uint64 ]uint64 ),
93+ store : store ,
94+ exec : exec ,
95+ da : da ,
96+ cache : cache ,
97+ metrics : metrics ,
98+ config : config ,
99+ genesis : genesis ,
100+ options : options ,
101+ headerStore : headerStore ,
102+ dataStore : dataStore ,
103+ lastStateMtx : & sync.RWMutex {},
104+ heightInCh : make (chan common.DAHeightEvent , 10_000 ),
105+ errorCh : errorCh ,
106+ logger : logger .With ().Str ("component" , "syncer" ).Logger (),
109107 }
110108}
111109
You can’t perform that action at this time.
0 commit comments