mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-21 15:35:35 +00:00
small bug fix
This commit is contained in:
@@ -114,7 +114,7 @@ func (r *RepoOrchestrator) Mount(ctx context.Context) (string, func(), error) {
|
||||
return "", func() {}, r.mountErr
|
||||
}
|
||||
|
||||
mountCtx, cancel := context.WithCancel(ctx)
|
||||
mountCtx, cancel := context.WithCancel(context.Background())
|
||||
if err := r.repo.Mount(mountCtx, r.mountDir, 60*time.Second); err != nil {
|
||||
r.logger(ctx).Warn("failed to mount repo", zap.Error(err))
|
||||
r.mountErr = fmt.Errorf("mount repo %v: %w", r.repoConfig.Id, err)
|
||||
|
||||
Reference in New Issue
Block a user