Skip to content

Commit

Permalink
add processing context Done
Browse files Browse the repository at this point in the history
  • Loading branch information
dieofcode committed Dec 9, 2023
1 parent 4458dfb commit 3e33f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"context"
"log"
"math/rand"
"net/http"
"os/signal"
Expand Down Expand Up @@ -38,7 +39,7 @@ loop:
metrics = append(metrics, m.Metric{MetricType: m.Counter, MetricName: m.PoolCount, Value: counter})
err := agent.SendMetric(ctx, *httpClient, metrics)
if err != nil {
//TODO handle error
log.Fatal(err)
}
case <-poolTicker.C:
counter++
Expand Down
1 change: 0 additions & 1 deletion cmd/agent/main_test.go

This file was deleted.

0 comments on commit 3e33f1c

Please sign in to comment.