Skip to content

Commit

Permalink
Log from batch poster for which das backends are using chunked vs leg…
Browse files Browse the repository at this point in the history
…acy store
  • Loading branch information
ganeshvanahalli committed Oct 21, 2024
1 parent 5f24df4 commit 1a1e179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions das/dasRpcClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func (c *DASRPCClient) Store(ctx context.Context, message []byte, timeout uint64
var startChunkedStoreResult StartChunkedStoreResult
if err := c.clnt.CallContext(ctx, &startChunkedStoreResult, "das_startChunkedStore", hexutil.Uint64(timestamp), hexutil.Uint64(nChunks), hexutil.Uint64(c.chunkSize), hexutil.Uint64(totalSize), hexutil.Uint64(timeout), hexutil.Bytes(startReqSig)); err != nil {
if strings.Contains(err.Error(), "the method das_startChunkedStore does not exist") {
log.Info("Legacy store is used by the DAS client", "url", c.url)
return c.legacyStore(ctx, message, timeout)
}
return nil, err
Expand Down

0 comments on commit 1a1e179

Please sign in to comment.