Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 5e6ff89

Browse files
committed
fixes nil pointer error
1 parent f1dfe80 commit 5e6ff89

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

backend/dev/build/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update \
88
apt-get install --no-install-recommends -y \
99
build-essential
1010

11-
RUN go install github.com/air-verse/air@latest
11+
RUN go install github.com/air-verse/air@v1.52.3
1212

1313
# Copy the Go Modules manifests
1414
COPY go.mod go.sum ./

backend/internal/cmds/mgmt/serve/connect/cmd.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ func serve(ctx context.Context) error {
114114
}
115115
slogger.Debug(fmt.Sprintf("ee license enabled: %t", eelicense.IsValid()))
116116

117+
if getIsNeosyncCloud() {
118+
slogger.Debug("neosync cloud is enabled")
119+
}
120+
117121
mux := http.NewServeMux()
118122

119123
services := []string{

backend/services/mgmt/v1alpha1/anonymization-service/anonymization.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ func (s *Service) AnonymizeSingle(
192192

193193
outputData, err := anonymizer.AnonymizeJSONObject(req.Msg.InputData)
194194
if err != nil {
195+
if outputErrorCounter != nil {
195196
outputErrorCounter.Add(ctx, int64(1), metric.WithAttributes(labels...))
197+
}
196198
return nil, err
197199
}
198200

worker/dev/build/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN apt-get update \
88
apt-get install --no-install-recommends -y \
99
build-essential
1010

11-
RUN go install github.com/air-verse/air@latest
11+
RUN go install github.com/air-verse/air@@v1.52.3
1212

1313
# Copy the Go Modules manifests
1414
COPY go.mod go.sum ./

0 commit comments

Comments
 (0)