Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Aug 26, 2024
1 parent bc2afb7 commit a2f8eef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions protocol/rpcconsumer/relay_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ type RelayProcessor struct {
metricsInf MetricsInterface
chainIdAndApiInterfaceGetter chainIdAndApiInterfaceGetter
relayRetriesManager *RelayRetriesManager
retryOptions retryProcessorOptions
retryOptions relayProcessorRetryOptions
}

type retryProcessorOptions struct {
type relayProcessorRetryOptions struct {
relayCountOnNodeError int
disableCacheOnNodeError bool
disableRelayRetry bool
Expand All @@ -80,7 +80,7 @@ func NewRelayProcessor(
debugRelay bool,
metricsInf MetricsInterface,
chainIdAndApiInterfaceGetter chainIdAndApiInterfaceGetter,
retryOptions retryProcessorOptions,
retryOptions relayProcessorRetryOptions,
relayRetriesManager *RelayRetriesManager,
) *RelayProcessor {
guid, _ := utils.GetUniqueIdentifier(ctx)
Expand Down
2 changes: 1 addition & 1 deletion protocol/rpcconsumer/relay_processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/stretchr/testify/require"
)

var retryOptionsTest = retryProcessorOptions{
var retryOptionsTest = relayProcessorRetryOptions{
disableRelayRetry: false,
relayCountOnNodeError: 2,
disableCacheOnNodeError: false,
Expand Down
4 changes: 2 additions & 2 deletions protocol/rpcconsumer/rpcconsumer_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ type RPCConsumerServer struct {
connectedSubscriptionsContexts map[string]*CancelableContextHolder
chainListener chainlib.ChainListener
connectedSubscriptionsLock sync.RWMutex
retryOptions retryProcessorOptions
retryOptions relayProcessorRetryOptions
relayRetriesManager *RelayRetriesManager
}

Expand Down Expand Up @@ -124,7 +124,7 @@ func (rpccs *RPCConsumerServer) ServeRPCRequests(ctx context.Context, listenEndp
rpccs.debugRelays = cmdFlags.DebugRelays
rpccs.connectedSubscriptionsContexts = make(map[string]*CancelableContextHolder)
rpccs.consumerProcessGuid = strconv.FormatUint(utils.GenerateUniqueIdentifier(), 10)
rpccs.retryOptions = retryProcessorOptions{
rpccs.retryOptions = relayProcessorRetryOptions{
disableRelayRetry: cmdFlags.DisableRetryOnNodeErrors,
relayCountOnNodeError: cmdFlags.SetRelayCountOnNodeError,
disableCacheOnNodeError: cmdFlags.DisableCacheOnNodeError,
Expand Down

0 comments on commit a2f8eef

Please sign in to comment.