2026-08-09 12:55:12: merge [main:2a846c67e4464370c1f5c9969133147e1d793e8e];
Create and publish a Docker image / build-and-push-image (push) Canceled after 0s

This commit is contained in:
txix committed 2026-08-09 12:55:12 +03:00
1 parent fdeffe36da
commit 0be5d9006a
4 files changed
+17 -7

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ import (
)
type Repo interface {
Insert(ctx context.Context, backend entity.Backend) error
Upsert(ctx context.Context, backend entity.Backend) error
DeleteByWsConnectionIds(ctx context.Context, wsConnIds []string) error
GetByConfigServiceNodeId(ctx context.Context, configServiceNodeId string) ([]entity.Backend, error)
DeleteByConfigServiceNodeId(ctx context.Context, configServiceNodeId string) (int, error)
@@ -86,7 +86,7 @@ func (s Backend) Connect(
MetricsAutodiscovery: metricsAd,
}
err := s.backendRepo.Insert(ctx, backend)
err := s.backendRepo.Upsert(ctx, backend)
if err != nil {
return nil, errors.WithMessage(err, "upsert backend in store")
}