Explorar o código

add initialization for health ping

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
24a5e34ce0
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      app/observatory/burst/burstobserver.go

+ 2 - 0
app/observatory/burst/burstobserver.go

@@ -91,10 +91,12 @@ func New(ctx context.Context, config *Config) (*Observer, error) {
 	if err != nil {
 		return nil, newError("Cannot get depended features").Base(err)
 	}
+	hp := NewHealthPing(ctx, config.PingConfig)
 	return &Observer{
 		config: config,
 		ctx:    ctx,
 		ohm:    outboundManager,
+		hp:     hp,
 	}, nil
 }