Skip to content
Snippets Groups Projects
Unverified Commit f7e0568a authored by Andrew Gillis's avatar Andrew Gillis Committed by GitHub
Browse files

feat: IPFS_WAIT_REPO_LOCK (#10797)


* repo: optionally wait to acquire repo lock

Retry acquiring repo lock for a specified amount of time. Retry once per second until time is expired ro lock is acquired.

Lock wait timeout is specified using the environment variable `IPFS_WAIT_REPO_LOCK` and assigning it a value that is parsable as a golang `time.Duration`. For example:

```
IPFS_WAIT_REPO_LOCK="5s"
```

Closes #10482

* document IPFS_WAIT_REPO_LOCK

---------

Co-authored-by: default avatarMarcin Rataj <lidel@lidel.org>
parent 4e326775
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment