Skip to content

Commit

Permalink
Remove useless logging on the client
Browse files Browse the repository at this point in the history
  • Loading branch information
binchick.in committed May 3, 2023
1 parent 57bf16b commit 3b0f299
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions honey/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package honey

import (
"context"
"fmt"
"os"

"cloud.google.com/go/pubsub"
Expand All @@ -24,12 +23,7 @@ func (h *HoneyClient) Publish(data []byte) {
Data: data,
Attributes: h.hostMetaData,
}
r := h.topic.Publish(ctx, &msg) // Leave this unassigned for now. We might want to handle this later though.
s, err := r.Get(ctx)
if err != nil {
panic(err)
}
fmt.Println(s) // Remove this line
h.topic.Publish(ctx, &msg)
}

func NewHoneyClientFromEnv() HoneyClient {
Expand Down

0 comments on commit 3b0f299

Please sign in to comment.