Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hex representation of operator ID in dispatcher logs #1002

Merged
merged 1 commit into from
Dec 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading