Skip to content

Commit

Permalink
Use hex representation of operator ID in dispatcher logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanc committed Dec 13, 2024
1 parent 7b12ebf commit c90d198
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions disperser/controller/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"github.com/prometheus/client_golang/prometheus"
"math"
"time"

Expand All @@ -16,6 +15,7 @@ import (
"github.com/Layr-Labs/eigenda/disperser/common/v2/blobstore"
"github.com/Layr-Labs/eigensdk-go/logging"
gethcommon "github.com/ethereum/go-ethereum/common"
"github.com/prometheus/client_golang/prometheus"
)

var errNoBlobsToDispatch = errors.New("no blobs to dispatch")
Expand Down Expand Up @@ -152,7 +152,7 @@ func (d *Dispatcher) HandleBatch(ctx context.Context) (chan core.SigningMessage,

client, err := d.nodeClientManager.GetClient(host, dispersalPort)
if err != nil {
d.logger.Error("failed to get node client", "operator", opID, "err", err)
d.logger.Error("failed to get node client", "operator", opID.Hex(), "err", err)
continue
}

Expand Down Expand Up @@ -207,7 +207,7 @@ func (d *Dispatcher) HandleBatch(ctx context.Context) (chan core.SigningMessage,
break
}

d.logger.Warn("failed to send chunks", "operator", opID, "NumAttempts", i, "err", err)
d.logger.Warn("failed to send chunks", "operator", opID.Hex(), "NumAttempts", i, "err", err)
time.Sleep(time.Duration(math.Pow(2, float64(i))) * time.Second) // Wait before retrying
}
d.metrics.reportSendChunksRetryCount(float64(i))
Expand Down

0 comments on commit c90d198

Please sign in to comment.