Skip to content

Commit 9bcd162

Browse files
konradkonradulope
authored andcommitted
Add metricsserver to p2pnode
1 parent 1ccb5b2 commit 9bcd162

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rolling-shutter/p2pnode/config.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"io"
55

66
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/configuration"
7+
"github.com/shutter-network/rolling-shutter/rolling-shutter/medley/metricsserver"
78
"github.com/shutter-network/rolling-shutter/rolling-shutter/p2p"
89
)
910

@@ -18,11 +19,13 @@ func NewConfig() *Config {
1819
type Config struct {
1920
ListenMessages bool `comment:"whether to register handlers on the messages and log them"`
2021

21-
P2P *p2p.Config
22+
P2P *p2p.Config
23+
Metrics *metricsserver.MetricsConfig
2224
}
2325

2426
func (c *Config) Init() {
2527
c.P2P = p2p.NewConfig()
28+
c.Metrics = metricsserver.NewConfig()
2629
}
2730

2831
func (c *Config) Name() string {

0 commit comments

Comments
 (0)