We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd2f1a commit d35c6f5Copy full SHA for d35c6f5
status/manager.go
@@ -55,9 +55,15 @@ type subServer struct {
55
56
// newSubServer constructs a new subServer.
57
func newSubServer(disabled bool, opts ...SubServerOption) *subServer {
58
- return &subServer{
+ s := &subServer{
59
disabled: disabled,
60
}
61
+
62
+ for _, opt := range opts {
63
+ opt(s)
64
+ }
65
66
+ return s
67
68
69
// Manager manages the status of any sub-server registered to it. It is also an
0 commit comments