diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-07-02 20:50:53 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-07-02 20:50:53 +0200 |
| commit | 570181d2004e1d07a8a4e946f352d619a5f8895f (patch) | |
| tree | c93721f6ffbacc2e10e64f4dadb438af65fa21e6 /src/proto.h | |
| parent | 0ad1578589f252e54d37c5c6cc62220a68615627 (diff) | |
Rework when a lookup is considered complete
Keep track of outstanding requests sent as part of a lookup and rely on
those individual request timeouts to signal the end of the lookup as
a whole. This also makes sure we have the lookup around for the entire
duration of all downstream requests.
Diffstat (limited to 'src/proto.h')
| -rw-r--r-- | src/proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto.h b/src/proto.h index 8b65d3d..638c1ec 100644 --- a/src/proto.h +++ b/src/proto.h @@ -35,7 +35,7 @@ struct lookup { struct nodeid closest[8]; struct addr closest_addr[8]; - time_t timeout; + uint64_t outstanding; }; void token_create(struct tokens* tokens, time_t now, struct addr* remote, char* token); |
