Skip to content

Commit

Permalink
Render unto Caesar
Browse files Browse the repository at this point in the history
  • Loading branch information
0gap committed Dec 5, 2021
1 parent 99c969b commit 93ba974
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV GO111MODULE=on

RUN apk update && apk add bash ca-certificates git gcc g++ libc-dev

RUN mkdir -p /learningGo/proto
RUN mkdir -p /grpchat/proto

WORKDIR /learningGo

Expand All @@ -17,6 +17,6 @@ COPY go.sum .

RUN go mod download

RUN go build -o learningGo .
RUN go build -o grpchat .

CMD ./learningGo -port 8080
2 changes: 1 addition & 1 deletion client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"flag"
"fmt"
"google.golang.org/grpc"
lpb "learningGo/proto"
lpb "grpchat/proto"
"log"
"os"
"sync"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module learningGo
module grpchat

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion proto/service.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto2";

package proto;
option go_package = "learningGo/proto";
option go_package = "grpchat/proto";
message User {
required string id = 1;
required string name = 2;
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"google.golang.org/grpc"
glog "google.golang.org/grpc/grpclog"
lpb "learningGo/proto"
lpb "grpchat/proto"
"log"
"net"
"os"
Expand Down

0 comments on commit 93ba974

Please sign in to comment.