Skip to content

Commit

Permalink
minor: no need for var now
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Aug 22, 2024
1 parent f75a6fa commit 75270f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions getparty.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,13 @@ func (cmd *Cmd) Run(args []string, version, commit string) (err error) {

select {
case id := <-statusOK.first:
now := time.Now()
start <- time.Now()
delete(cancelMap, id)
for _, cancel := range cancelMap {
cancel()
}
single = true
cmd.loggers[DEBUG].Printf("P%02d got http status 200", id)
start <- now
case <-statusOK.ctx.Done():
now := time.Now()
start <- now
Expand Down

0 comments on commit 75270f1

Please sign in to comment.