swarm-controller, swarm-ci-metrics: build forge clients through forge-client
This commit is contained in:
parent
d54b59df7e
commit
a77131ca3f
3 changed files with 75 additions and 28 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# `forge-client` — the one place hyperhive builds a Forgejo client and
|
||||
# parses a Forgejo notification. Shared by `hive-forge` (blocking CLI) and
|
||||
# `hive-forge-notify` (async poller) so that forgejo-api schema drift is
|
||||
# parses a Forgejo notification. Shared by `hive-forge`, `hive-forge-notify`,
|
||||
# `swarm-controller` and `swarm-ci-metrics` so that forgejo-api schema drift is
|
||||
# handled once.
|
||||
[package]
|
||||
name = "forge-client"
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# forge-client
|
||||
|
||||
The one place hyperhive builds a Forgejo client and reads a Forgejo
|
||||
notification. `hive-forge` (the blocking CLI) and `hive-forge-notify` (the
|
||||
async poller) share it, so a Forgejo schema change that `forgejo-api` does not
|
||||
yet model is fixed here once.
|
||||
notification. `hive-forge` (the blocking CLI), `hive-forge-notify` (the
|
||||
async poller), `swarm-controller` and `swarm-ci-metrics` share it, so a Forgejo
|
||||
schema change that `forgejo-api` does not yet model is fixed here once.
|
||||
|
||||
## When to use it
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
//! Forgejo client construction, timeout policy and the drift-tolerant
|
||||
//! notification thread, shared by `hive-forge` and `hive-forge-notify`.
|
||||
//! notification thread, shared by every hyperhive forge consumer.
|
||||
//!
|
||||
//! Construction takes a base URL and a [`TokenSource`]; the bounds on how
|
||||
//! long a call may take come from a [`TimeoutPolicy`] the caller names.
|
||||
|
|
|
|||
Loading…
Reference in a new issue