Commit graph

14 commits

Author SHA1 Message Date
George Tsagkarelis
3ccfc5231b
multi: prepare for new non-constant string rule
In preparation for the next commit which bumps golang to a newer
version, we want to make some code changes that would otherwise render
some log-related calls problematic. With go1.24 a new govet rule was
added that disallows non-constant strings (i.e including a tag like
"%s") in calls to printf. See more in the related issue
https://github.com/golang/go/issues/60529.
2025-09-18 12:05:28 +02:00
Elle Mouton
9655dc6fa2
status: return error if subserver already registered
Let the status manager first check its map of subservers before
registering a new one to ensure that an existing subserver is not being
overridden.
2024-10-21 10:25:06 +02:00
omahs
1aa4bd854c
status: fix typos 2024-09-30 08:59:48 +02:00
Viktor Tigerström
d35c6f581b
status: apply functional options on subServer init 2024-01-15 20:13:31 +01:00
Viktor Tigerström
fcd22a74f1
status: unexport SubServerStatus & rename to subServer 2024-01-05 03:46:55 +01:00
Viktor Tigerström
33646b4598
status: remove err when marking sub-server as running
Ensure that the sub-server error string is set to an empty string when
marking a sub-server as running. This will be important for the next
commit, which will retry to start the lnd sub-server even if we error
when starting the lnd-client(s), and therefore may mark the lnd
sub-server as running even after we've errored when starting the
lnd-client(s).
2024-01-05 03:46:54 +01:00
Viktor Tigerström
e4c7275ea7
multi: use request overrides in RPC proxy 2024-01-05 03:46:54 +01:00
Viktor Tigerström
0c6a84babf
status: add status manager isReadyOverride func
isReadyOverride is a callback that, when set and only if `running` is
not yet true, will be used to determine if a system is ready for a call.
We will pass the request URI to this method along with the
`manualStatus`. The first returned boolean is true if the system should
be seen as ready and the second is true if the override does handle the
given request. If it does not, then we will fall back to our normal
is-ready check.
2024-01-05 03:46:54 +01:00
Viktor Tigerström
4a46e41f97
protos: add Subserver custom_status to protos 2024-01-05 03:46:54 +01:00
Viktor Tigerström
3d4c66cada
status: enable setting custom sub-server statuses 2024-01-05 03:46:54 +01:00
Viktor Tigerström
3b83d6e102
status: format log row in SetErrored correctly 2024-01-05 03:45:54 +01:00
Viktor Tigerström
2d726f8dc1
status: add functional opts on SubServerStatus init
Refactor Register & Enable functions to enable setting of
SubServerOptions, i.e. functional options, when initiating a
SubServer.
2024-01-05 03:42:15 +01:00
Oliver Gugger
322a96133d
multi: fix linter issues 2023-10-03 19:52:02 +02:00
Elle Mouton
21525a5d53
status: add status server implementation 2023-09-22 11:59:24 +02:00