Skip to content

Commit

Permalink
zig- update to master 0.9.0-dev.1599
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Nov 17, 2021
1 parent 634bb4d commit fe02155
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Zig
- uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1524+d2f9646d9
version: 0.9.0-dev.1599+008b0ec5e
- run: zig version
- run: zig env
- uses: nektro/actions-setup-zigmod@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v1
with:
version: 0.9.0-dev.1524+d2f9646d9
version: 0.9.0-dev.1599+008b0ec5e

- run: zig version
- run: zig env
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app
COPY . .
ARG RELEASE_NUM
RUN apk add bash sudo wget curl jq git
RUN ./download_zig.sh 0.9.0-dev.1524+d2f9646d9
RUN ./download_zig.sh 0.9.0-dev.1599+008b0ec5e
RUN zigmod ci
RUN zig build -Dversion=r${RELEASE_NUM}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ $ zig build
```

## Built With
- Zig master (at least `0.9.0-dev.1524+d2f9646d9`)
- Zig master (at least `0.9.0-dev.1599+008b0ec5e`)
- See [`zig.mod`](./zig.mod) and [`zigmod.lock`](./zigmod.lock)

## License
Expand Down
4 changes: 2 additions & 2 deletions src/db/Remote.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ pub const Remote = struct {
}

pub fn create(alloc: *std.mem.Allocator, ty: Type, domain: string) !Remote {
const held = db.mutex.acquire();
defer held.release();
db.mutex.lock();
defer db.mutex.unlock();

return _internal.insert(alloc, &Remote{
.uuid = _internal.factory.newULID(),
Expand Down
4 changes: 2 additions & 2 deletions src/db/User.zig
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ pub const User = struct {
pub const table_name = "users";

pub fn create(alloc: *std.mem.Allocator, provider: u64, snowflake: string, name: string) !User {
const held = db.mutex.acquire();
defer held.release();
db.mutex.lock();
defer db.mutex.unlock();

return try _internal.insert(alloc, &User{
.uuid = _internal.factory.newULID(),
Expand Down

0 comments on commit fe02155

Please sign in to comment.