this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

respect the contexts a little better (#369)

authored by

Whyrusleeping and committed by
GitHub
8a63a7a3 29ee1cee

+9
+9
bgs/bgs.go
··· 1227 1227 1228 1228 results := make(map[models.Uid]*carstore.CompactionStats) 1229 1229 for _, r := range repos { 1230 + select { 1231 + case <-ctx.Done(): 1232 + return &compactionStats{ 1233 + Targets: repos, 1234 + Completed: results, 1235 + }, nil 1236 + default: 1237 + } 1238 + 1230 1239 st, err := bgs.repoman.CarStore().CompactUserShards(context.Background(), r.Usr) 1231 1240 if err != nil { 1232 1241 log.Errorf("failed to compact shards for user %d: %s", r.Usr, err)