Skip to content

Commit

Permalink
Update blox.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Mar 21, 2024
1 parent 093dc0f commit f7cebba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion blox/blox.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,11 @@ func (p *Blox) Start(ctx context.Context) error {

// Call HandleManifestBatchStore method
_, err = p.bl.HandleManifestBatchStore(context.TODO(), p.topicName, storedLinks)
if err != nil {
if strings.Contains(err.Error(), "AccountAlreadyStorer") {
// Log the occurrence of the specific error but do not continue
log.Warnw("Attempt to store with an account that is already a storer", "err", err, "p.topicName", p.topicName, "storedLinks", storedLinks)
} else {
// For any other error, log and continue
log.Errorw("Error calling HandleManifestBatchStore", "err", err, "p.topicName", p.topicName, "storedLinks", storedLinks)
continue
}
Expand Down

0 comments on commit f7cebba

Please sign in to comment.