mirror of
https://git.robbyzambito.me/zaprus
synced 2026-03-25 09:45:58 +00:00
Compare commits
4 Commits
f202410f0d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| cbbd710b9d | |||
| 974baf0274 | |||
| e744a44317 | |||
| d1ca448835 |
@@ -1,6 +1,6 @@
|
|||||||
when:
|
when:
|
||||||
- event: ["push", "pull_request", "manual"]
|
- event: ["push", "pull_request", "manual"]
|
||||||
branch: ["dev", "master", "test*"]
|
branch: ["dev", "master"]
|
||||||
tag: ["v*"]
|
tag: ["v*"]
|
||||||
|
|
||||||
engine: "nixery"
|
engine: "nixery"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
// This is a [Semantic Version](https://semver.org/).
|
// This is a [Semantic Version](https://semver.org/).
|
||||||
// In a future version of Zig it will be used for package deduplication.
|
// In a future version of Zig it will be used for package deduplication.
|
||||||
.version = "0.0.0",
|
.version = "0.2.1",
|
||||||
|
|
||||||
// Together with name, this represents a globally unique package
|
// Together with name, this represents a globally unique package
|
||||||
// identifier. This field is generated by the Zig toolchain when the
|
// identifier. This field is generated by the Zig toolchain when the
|
||||||
|
|||||||
@@ -146,7 +146,13 @@ pub fn main(init: std.process.Init) !void {
|
|||||||
|
|
||||||
if (flags.connect != null) {
|
if (flags.connect != null) {
|
||||||
reconnect: while (true) {
|
reconnect: while (true) {
|
||||||
client = try .init();
|
client = SaprusClient.init() catch |err| switch (err) {
|
||||||
|
error.NoInterfaceFound => {
|
||||||
|
try init.io.sleep(.fromMilliseconds(100), .boot);
|
||||||
|
continue :reconnect;
|
||||||
|
},
|
||||||
|
else => |e| return e,
|
||||||
|
};
|
||||||
defer client.deinit();
|
defer client.deinit();
|
||||||
log.debug("Starting connection", .{});
|
log.debug("Starting connection", .{});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user