Skip to content

Commit adaf093

Browse files
committed
cre-1601: review improvement
1 parent 6ae609e commit adaf093

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/workflows/shardorchestrator/plugin.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ func (p *Plugin) Query(_ context.Context, _ ocr3types.OutcomeContext) (types.Que
7676
func (p *Plugin) Observation(_ context.Context, outctx ocr3types.OutcomeContext, _ types.Query) (types.Observation, error) {
7777
shardHealth := p.store.GetShardHealth()
7878

79-
hashes := []string{}
79+
allWorkflowIDs := []string{}
8080
for wfID := range p.store.GetAllRoutingState() {
81-
hashes = append(hashes, wfID)
81+
allWorkflowIDs = append(allWorkflowIDs, wfID)
8282
}
83-
slices.Sort(hashes)
83+
slices.Sort(allWorkflowIDs)
8484

8585
observation := &pb.Observation{
8686
Status: shardHealth,
87-
Hashes: hashes,
87+
Hashes: allWorkflowIDs,
8888
Now: nil,
8989
}
9090

0 commit comments

Comments
 (0)