Skip to content

Commit

Permalink
minor renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Aug 29, 2023
1 parent 14165df commit fd832a0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/localServer/localTestClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const (
testImage = "./localServer/images/sampleimage.jpeg"
)

// main connects to a seperatly started local server and creates ratings for both, cafeterias and dishes.
// Afterwards, they are queried and displayed on the console
// main connects to a separately started local server an allows to test things
func main() {
// Set up a connection to the local server.
log.Info("Connecting...")
Expand All @@ -30,7 +29,7 @@ func main() {
defer cancel()

// add your test here
x, err := c.SendFeedback(ctx, &pb.SendFeedbackRequest{
feedback, err := c.SendFeedback(ctx, &pb.SendFeedbackRequest{
Topic: "tca",
Email: "[email protected]",
EmailId: "magic id",
Expand All @@ -40,9 +39,8 @@ func main() {
AppVersion: "v2",
})
if err != nil {
log.WithError(err).Error("error occurred")
log.WithError(err).Error("error sending feedback occurred")
} else {
log.Info("Success")
log.Info(x)
log.Info("Success %s", feedback.Status)
}
}

0 comments on commit fd832a0

Please sign in to comment.