Changed sync tappers to start only when sync tappers config is true (#562)

This commit is contained in:
RoyUP9
2021-12-27 17:19:00 +02:00
committed by GitHub
parent 2da7c0f0ed
commit 15895d5947
5 changed files with 22 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ import (
)
func HealthCheck(c *gin.Context) {
if config.Config.DaemonMode {
if config.Config.SyncTappers {
if providers.ExpectedTapperAmount != providers.TappersCount {
c.JSON(http.StatusInternalServerError, fmt.Sprintf("expecting more tappers than are actually connected (%d expected, %d connected)", providers.ExpectedTapperAmount, providers.TappersCount))
return