Skip to content

Commit

Permalink
removed create message for agents and probe data, and probes
Browse files Browse the repository at this point in the history
  • Loading branch information
sagostin committed Sep 20, 2024
1 parent 656f52c commit 4c2b7ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/agent/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (probe *Probe) Create(db *mongo.Database) error {
ee.Error = err
return ee.ToError()
}
result, err := db.Collection("probes").InsertOne(context.TODO(), b)
_, err = db.Collection("probes").InsertOne(context.TODO(), b)
if err != nil {
ee.Message = "error inserting into probes"
ee.Error = err
Expand Down

0 comments on commit 4c2b7ee

Please sign in to comment.