diff options
| author | tv <tv@krebsco.de> | 2026-11-19 22:03:28 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-19 23:04:37 +0100 |
| commit | 10786d2e598865cd6e763df08f692cfc0f756908 (patch) | |
| tree | ab0cced77b660ef2f789d68ed77cefb122ae6fdc /src/api/events.rs | |
| parent | 4c2a4dfdb88fb008e0ba915047207efb8418ce77 (diff) | |
`status` took a node heard from 0 seconds ago for the node it asked, as
counts give 0 for that one; another node heard from within the second
was called `this node` too.
GET /events says the node's ID now (`node`), and `status` marks the node
of that ID (`here` in --json), and no other, as `this node`; another heard
from within the second is `heard 0 s ago`.
Diffstat (limited to 'src/api/events.rs')
| -rw-r--r-- | src/api/events.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/events.rs b/src/api/events.rs index d6c06c4..5a69769 100644 --- a/src/api/events.rs +++ b/src/api/events.rs @@ -84,8 +84,9 @@ fn why(refusal: &Refusal) -> String { /// `GET /events`: the store's ID, its checkpoint's, its heads, as many as an event may /// name, what a new event builds on (`Store::building_on`), how many events it took -/// after its checkpoint, the event it stopped at, if any, the node's party, whether the -/// node votes for it by itself, and the revisions of the federation its continuum knows. +/// after its checkpoint, the event it stopped at, if any, the node's ID and party, whether +/// the node votes for it by itself, and the revisions of the federation its continuum +/// knows. async fn summary(State(state): State<AppState>) -> Response { let party = state.holding.party().map(str::to_owned); let votes = state.holding.votes_by_itself(); @@ -99,6 +100,7 @@ async fn summary(State(state): State<AppState>) -> Response { "heads": ids(store.building_on()), "taken": store.taken().len(), "stopped": stopped, + "node": state.local_id(), "party": party, "votesByItself": votes, "revisions": revisions(), |
