Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Jan 29, 2025
1 parent ce429b0 commit 957a767
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions multinode/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ type AdapterConfig interface {
FinalizedBlockPollInterval() time.Duration
}

// Adapter is used to integrate multinode into chain-specific clients
// Adapter is used to integrate multinode into chain-specific clients.
// For new MultiNode integrations, we wrap the RPC client and inherit from the Adapter
// to get the required RPCClient methods and enable the use of MultiNode.
type Adapter[HEAD Head] struct {
cfg AdapterConfig
log logger.Logger
Expand All @@ -29,8 +31,8 @@ type Adapter[HEAD Head] struct {

// lifeCycleCh can be closed to immediately cancel all in-flight requests on
// this RPC. Closing and replacing should be serialized through
// stateMu since it can happen on state transitions as well as RpcMultiNodeAdapter Close.
// Closed once RPC is declared unhealthy.
// lifeCycleMu since it can happen on state transitions as well as Adapter Close.
// Also closed when RPC is declared unhealthy.
lifeCycleMu sync.RWMutex
lifeCycleCh chan struct{}

Expand Down

0 comments on commit 957a767

Please sign in to comment.