Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Nov 22, 2024
1 parent d8f90a6 commit 0cd9cca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/services/workflows/syncer/workflow_registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,14 @@ func (w *workflowRegistry) loadWorkflows(ctx context.Context) error {
Address: w.workflowRegistryAddress,
Name: WorkflowRegistryContractName,
}

readIdentifier := valueSourceContract.ReadIdentifier(GetWorkflowMetadataListByDONMethodName)
params := GetWorkflowMetadataListByDONParams{
DonID: w.donID,
Start: 0,
Limit: 0, // 0 tells the contract to return max pagination limit workflows in a single call
}
for {

var workflows GetWorkflowMetadataListByDONReturnVal
err := w.reader.GetLatestValue(ctx, readIdentifier, primitives.Finalized, params, &workflows)
if err != nil {
Expand Down

0 comments on commit 0cd9cca

Please sign in to comment.