File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -279,14 +279,18 @@ func (m *Adapter[RPC, HEAD]) GetChStopInflight() chan struct{} {
279279 return m .chStopInFlight
280280}
281281
282- func (m * Adapter [RPC , HEAD ]) Close () {
283- m .CancelInflightRequests ()
284- m .UnsubscribeAllExcept ()
282+ func (m * Adapter [RPC , HEAD ]) ResetLatestChainInfo () {
285283 m .chainInfoLock .Lock ()
286284 m .latestChainInfo = ChainInfo {}
287285 m .chainInfoLock .Unlock ()
288286}
289287
288+ func (m * Adapter [RPC , HEAD ]) Close () {
289+ m .CancelInflightRequests ()
290+ m .UnsubscribeAllExcept ()
291+ m .ResetLatestChainInfo ()
292+ }
293+
290294func (m * Adapter [RPC , HEAD ]) GetInterceptedChainInfo () (latest , highestUserObservations ChainInfo ) {
291295 m .chainInfoLock .Lock ()
292296 defer m .chainInfoLock .Unlock ()
You can’t perform that action at this time.
0 commit comments