mirror of
https://github.com/restic/restic.git
synced 2024-12-22 07:43:03 +00:00
serve: Use non-exclusive read lock
This commit is contained in:
parent
fb45bd5d42
commit
cd720149eb
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ func runWebServer(ctx context.Context, opts ServeOptions, gopts GlobalOptions, a
|
|||
return errors.Fatal("this command does not accept additional arguments")
|
||||
}
|
||||
|
||||
ctx, repo, unlock, err := openWithExclusiveLock(ctx, gopts, gopts.NoLock)
|
||||
ctx, repo, unlock, err := openWithReadLock(ctx, gopts, gopts.NoLock)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue