Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

Commit 9dd97fa

Browse files
author
jo-fr
committed
mv cities.json to nlp/frequency-analyzer/cities.json
1 parent 33e59c8 commit 9dd97fa

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

api/grpcserver/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ RUN CGO_ENABLED=0 GOOS=linux go build -installsuffix cgo -o grpc_server api/grpc
88
FROM alpine
99
RUN apk --no-cache add ca-certificates
1010
WORKDIR /app
11-
COPY cities.json .
11+
COPY nlp/frequency-analyzer/cities.json .
1212
COPY --from=builder /app/grpc_server .
1313
CMD ["./grpc_server"]

api/grpcserver/grpc_server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func NewGrpcServer(grpcPort string, userNamesWriter *kafka.Writer, s3Config *con
6060
s := &GrpcServer{}
6161

6262
// TODO: load cities.json
63-
jsonFile, err := os.Open("cities.json")
63+
jsonFile, err := os.Open("nlp/frequency-analyzer/cities.json")
6464
defer jsonFile.Close()
6565
if err != nil {
6666
log.Fatalln(err)
File renamed without changes.

nlp/frequency-analyzer/main/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func main() {
2424
log.Printf("a=%+v", a)
2525

2626
// TODO: load cities.json
27-
jsonFile, err := os.Open("cities.json")
27+
jsonFile, err := os.Open("nlp/frequency-analyzer/cities.json")
2828
defer jsonFile.Close()
2929
if err != nil {
3030
log.Fatalln(err)

0 commit comments

Comments
 (0)