Skip to content

Commit

Permalink
updateProcess: fix incorrect arguments, swap them back in correct ord…
Browse files Browse the repository at this point in the history
…er (#5)

updateProcess was called with the correct arguments only in the "run once" case, but not in the periodic run case.
  • Loading branch information
mpl authored Jan 14, 2025
1 parent 9160316 commit df3187b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func logic(ctx context.Context, o opts) error {
case <-ticker.C:
jitter := time.Duration(rand.Int63n(250)) * time.Second
time.Sleep(jitter)
if err := updateProcess(ctx, gusCli, machineID, sbomHash, o.gusServer, o.destinationDir, httpPassword, httpPort); err != nil {
if err := updateProcess(ctx, gusCli, machineID, o.gusServer, sbomHash, o.destinationDir, httpPassword, httpPort); err != nil {
log.Printf("error performing updateProcess: %v", err)
continue
}
Expand Down

0 comments on commit df3187b

Please sign in to comment.