Skip to content

Commit

Permalink
Misc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Jul 5, 2023
1 parent 2981e4d commit b716024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelines/pipeline_preview/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Execute(ctx rcontext.RequestContext, onHost string, previewUrl string, user
// Step 2: Fix timestamp bucket. If we're within 60 seconds of a bucket, just assume we're okay, so we don't
// infinitely recurse into ourselves.
now := util.NowMillis()
atBucket := util.GetHourBucket(opts.Timestamp)
atBucket := util.GetHourBucket(opts.Timestamp) // we should only be using this for the remainder of the function
nowBucket := util.GetHourBucket(now)
if (now-opts.Timestamp) > 60000 && atBucket != nowBucket {
return Execute(ctx, onHost, previewUrl, userId, PreviewOpts{
Expand Down

0 comments on commit b716024

Please sign in to comment.