mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
status: apply functional options on subServer init
This commit is contained in:
parent
7bd2f1a93c
commit
d35c6f581b
1 changed files with 7 additions and 1 deletions
|
|
@ -55,9 +55,15 @@ type subServer struct {
|
|||
|
||||
// newSubServer constructs a new subServer.
|
||||
func newSubServer(disabled bool, opts ...SubServerOption) *subServer {
|
||||
return &subServer{
|
||||
s := &subServer{
|
||||
disabled: disabled,
|
||||
}
|
||||
|
||||
for _, opt := range opts {
|
||||
opt(s)
|
||||
}
|
||||
|
||||
return s
|
||||
}
|
||||
|
||||
// Manager manages the status of any sub-server registered to it. It is also an
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue