Skip to content

Commit 3e4a5eb

Browse files
ru.nazarovhrissan
authored andcommitted
fix
1 parent a1368de commit 3e4a5eb

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ build-sh:
3232
CGO_ENABLED=0 go build -ldflags "$(COMMON_LDFLAGS)" -buildvcs=false -o target/statshouse ./cmd/statshouse
3333

3434
build-sh-api:
35-
go build -ldflags "$(COMMON_LDFLAGS)" -buildvcs=false -o target/statshouse-api ./cmd/statshouse-api
35+
CGO_ENABLED=0 go build -ldflags "$(COMMON_LDFLAGS)" -buildvcs=false -o target/statshouse-api ./cmd/statshouse-api
3636

3737
build-sh-api-embed:
3838
go build -tags embed -ldflags "$(COMMON_LDFLAGS)" -buildvcs=false -o target/statshouse-api ./cmd/statshouse-api

internal/api/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ func NewHandler(staticDir fs.FS, jsSettings JSSettings, showInvisible bool, chV1
607607
metricStorage := metajournal.MakeMetricsStorage(nil)
608608
// we ignore errors because cache can be damaged
609609
journal, _ := metajournal.LoadJournalFastFile(journalFile, data_model.JournalDDOSProtectionTimeout, false,
610-
[]metajournal.ApplyEvent{metricStorage.ApplyEvent})
610+
[]metajournal.ApplyEvent{metricStorage.ApplyEvent, cl.ApplyEventCB})
611611
journal.SetDumpPathPrefix(filepath.Join(cacheDir, fmt.Sprintf("journal-%s", cluster)))
612612
h := &Handler{
613613
HandlerOptions: opt,

internal/metajournal/mappings.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,6 @@ func (ms *MappingsStorage) Start(componentTag int32, sh2 *agent.Agent, mappingsL
271271
ms.mappingsLoader = mappingsLoader
272272
ms.sh2 = sh2
273273

274-
return
275274
if mappingsLoader == nil {
276275
return
277276
}

0 commit comments

Comments
 (0)