Skip to content

Commit

Permalink
chore:no empty (#233)
Browse files Browse the repository at this point in the history
* tmp

* fixed Empty being used
  • Loading branch information
CommanderStorm authored Sep 19, 2023
1 parent 33b24ea commit 64ca208
Show file tree
Hide file tree
Showing 11 changed files with 2,171 additions and 1,393 deletions.
2 changes: 1 addition & 1 deletion client/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require (
github.com/TUM-Dev/Campus-Backend/server v0.0.0-20230918233004-589371966806
github.com/sirupsen/logrus v1.9.3
google.golang.org/grpc v1.58.1
google.golang.org/protobuf v1.31.0
)

require (
Expand All @@ -18,4 +17,5 @@ require (
google.golang.org/genproto v0.0.0-20230913181813-007df8e322eb // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230913181813-007df8e322eb // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect
google.golang.org/protobuf v1.31.0 // indirect
)
3 changes: 1 addition & 2 deletions client/publicServer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/metadata"
"google.golang.org/protobuf/types/known/emptypb"
)

const (
Expand Down Expand Up @@ -43,7 +42,7 @@ func main() {
ctx = metadata.NewOutgoingContext(ctx, md)

log.Info("Trying to fetch top news")
if r, err := c.GetTopNews(ctx, &emptypb.Empty{}); err != nil {
if r, err := c.GetTopNews(ctx, &pb.GetNewsRequest{}); err != nil {
log.WithError(err).Fatal("could not greet")
} else {
log.WithField("topNewsResponse", r.String()).Info("fetched top news successfully")
Expand Down
Loading

0 comments on commit 64ca208

Please sign in to comment.