Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AsyncFileLockGuard #844

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Add AsyncFileLockGuard #844

merged 1 commit into from
Nov 16, 2023

Conversation

mkaput
Copy link
Member

@mkaput mkaput commented Oct 30, 2023

This data structure will be later used in Tokio-based code which writes to the file protected by this guard.

Signed-off-by: Marek Kaput marek.kaput@swmansion.com


Stack:

⚠️ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

@mkaput mkaput requested a review from maciektr October 30, 2023 17:57
github-merge-queue bot pushed a commit that referenced this pull request Oct 30, 2023
**Stack**:
- #846
- #845
- #844
- #843
- #819
- #818
- #809
- #808
- #807⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from c95c9bb to c825636 Compare October 31, 2023 08:19
@mkaput mkaput force-pushed the spr/main/ba8e1f16 branch from 8d01594 to dbc5232 Compare October 31, 2023 08:19
@mkaput mkaput force-pushed the spr/main/ba8e1f16 branch from dbc5232 to 8fd47a4 Compare November 7, 2023 14:19
@mkaput mkaput changed the base branch from spr/main/ba8e1f16 to main November 7, 2023 14:21
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from c825636 to b3e6ce2 Compare November 7, 2023 14:21
@mkaput mkaput changed the base branch from main to spr/main/bc758880 November 7, 2023 14:34
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from b3e6ce2 to 06cecd1 Compare November 8, 2023 08:57
@mkaput mkaput force-pushed the spr/main/bc758880 branch 2 times, most recently from 094c31c to 78efb00 Compare November 8, 2023 10:39
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from 06cecd1 to 4197544 Compare November 8, 2023 10:39
@mkaput mkaput mentioned this pull request Nov 9, 2023
@mkaput mkaput force-pushed the spr/main/bc758880 branch from 78efb00 to ec27844 Compare November 9, 2023 15:25
@mkaput mkaput force-pushed the spr/main/ebda97d6 branch from 4197544 to e16fa52 Compare November 9, 2023 15:25
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
This PR lays groundwork for implementing caching of `RegistryClient`
instances.
It just sets up all the types and refactors, no caching is done yet.

There is also a small functional change: local registry client does not
print
`Unpacking` status in normal mode. This wasn't a big deal, and it
allowed removing
the `is_offline` method from `RegistryClient`.

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818
- #809
- #808⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*

Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
NOTE: Nothing is cached actually yet, because no registry client uses
hooks provided by this code. This will come in subsequent PRs.

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818
- #809⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
github-merge-queue bot pushed a commit that referenced this pull request Nov 13, 2023
Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

---

**Stack**:
- #892
- #846
- #845
- #844
- #819
- #818⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
Base automatically changed from spr/main/bc758880 to main November 16, 2023 08:58
github-merge-queue bot pushed a commit that referenced this pull request Nov 16, 2023
Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

---

**Stack**:
- #909
- #906
- #892
- #846
- #845
- #844
- #819⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
This data structure will be later used in Tokio-based code which writes to the file protected by this guard.

Signed-off-by: Marek Kaput <marek.kaput@swmansion.com>

commit-id:ebda97d6
@mkaput mkaput enabled auto-merge November 16, 2023 10:16
@mkaput mkaput added this pull request to the merge queue Nov 16, 2023
Merged via the queue into main with commit 819e451 Nov 16, 2023
11 checks passed
@mkaput mkaput deleted the spr/main/ebda97d6 branch November 16, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants