Browse Source

add initialization for health ping

Shelikhoo 4 years ago
parent
commit
24a5e34ce0
1 changed files with 2 additions and 0 deletions
  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
 }