Skip to content

Commit

Permalink
Add comments to AddReadBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Jun 11, 2024
1 parent 4a272d0 commit d3f8ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/services/relay/evm/bindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func (b bindings) GetReadBinding(contractName, readName string) (readBinding, er
return rb, nil
}

// AddReadBinding adds read bindings. Calling this outside of Chain Reader init is not thread safe.
func (b bindings) AddReadBinding(contractName, readName string, rb readBinding) {
// Adding read bindings outside of Chain Reader init is not thread safe.
cb, cbExists := b[contractName]
if !cbExists {
cb = &contractBinding{
Expand Down

0 comments on commit d3f8ae0

Please sign in to comment.