Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
cktan committed Nov 15, 2019
1 parent 6d2d8f5 commit a2aa8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/s3pool/mon/bucketmon.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,12 @@ func Bucketmon() chan<- string {
// separate go routine?
log.Println("BUCKETMON refresh", bkt)
_, err := op.Refresh([]string{bkt})
log.Println("BUCKETMON fin", bkt)
if err != nil {
log.Printf("WARNING: autorefresh %s failed: %v\n", bkt, err)
delete(bktmap, bkt)
continue
}
log.Println("BUCKETMON fin", bkt)
bktmap[bkt] = conf.RefreshInterval * 60
}
}
Expand Down

0 comments on commit a2aa8cf

Please sign in to comment.