Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
Signed-off-by: litt3 <[email protected]>
  • Loading branch information
litt3 committed Jan 31, 2025
1 parent 6449255 commit 62f139c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/clients/v2/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (cc *PayloadClientConfig) checkAndSetDefaults() error {
func GetDefaultRelayPayloadRetrieverConfig() *RelayPayloadRetrieverConfig {
return &RelayPayloadRetrieverConfig{
PayloadClientConfig: *getDefaultPayloadClientConfig(),
RelayTimeout: 5 * time.Second,
RelayTimeout: 5 * time.Second,
}
}

Expand Down
5 changes: 4 additions & 1 deletion api/clients/v2/distributed_payload_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ func BuildDistributedPayloadRetriever(
ethClient,
distributedPayloadRetrieverConfig.BlsOperatorStateRetrieverAddr,
distributedPayloadRetrieverConfig.EigenDAServiceManagerAddr)
if err != nil {
return nil, fmt.Errorf("new reader: %w", err)
}

chainState := eth.NewChainState(reader, ethClient)
indexedChainState := thegraph.MakeIndexedChainState(thegraphConfig, chainState, logger)
Expand All @@ -73,7 +76,7 @@ func BuildDistributedPayloadRetriever(
distributedPayloadRetrieverConfig.PayloadPolynomialForm,
distributedPayloadRetrieverConfig.BlobEncodingVersion)
if err != nil {
return nil, err
return nil, fmt.Errorf("create codec: %w", err)
}

return &DistributedPayloadRetriever{
Expand Down
2 changes: 1 addition & 1 deletion api/clients/v2/relay_payload_retriever.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func NewRelayPayloadRetriever(

err := relayPayloadRetrieverConfig.checkAndSetDefaults()
if err != nil {
return nil, fmt.Errorf("check and set RelayRelayPayloadRetrieverConfig config: %w", err)
return nil, fmt.Errorf("check and set RelayPayloadRetrieverConfig config: %w", err)
}

return &RelayPayloadRetriever{
Expand Down

0 comments on commit 62f139c

Please sign in to comment.