-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
14165df
commit fd832a0
Showing
1 changed file
with
4 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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...") | ||
|
@@ -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", | ||
|
@@ -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) | ||
} | ||
} |