summaryrefslogtreecommitdiffstats
path: root/services/archiver/archiver.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/archiver/archiver.go')
-rw-r--r--services/archiver/archiver.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/archiver/archiver.go b/services/archiver/archiver.go
index 359fc8b627..dfa6334d95 100644
--- a/services/archiver/archiver.go
+++ b/services/archiver/archiver.go
@@ -76,7 +76,7 @@ func (aReq *ArchiveRequest) IsComplete() bool {
func (aReq *ArchiveRequest) WaitForCompletion(ctx *context.Context) bool {
select {
case <-aReq.cchan:
- case <-ctx.Req.Context().Done():
+ case <-ctx.Done():
}
return aReq.IsComplete()
@@ -92,7 +92,7 @@ func (aReq *ArchiveRequest) TimedWaitForCompletion(ctx *context.Context, dur tim
case <-time.After(dur):
timeout = true
case <-aReq.cchan:
- case <-ctx.Req.Context().Done():
+ case <-ctx.Done():
}
return aReq.IsComplete(), timeout