Skip to content

Commit 1063197

Browse files
committed
remove useless tomb instances
1 parent 526843e commit 1063197

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

healthcheck/http.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ import (
1818
"go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace"
1919
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
2020
"go.uber.org/zap"
21-
22-
"gopkg.in/tomb.v2"
2321
)
2422

2523
// HTTPHealthcheckConfiguration defines an HTTP healthcheck configuration
@@ -93,7 +91,6 @@ type HTTPHealthcheck struct {
9391
URL string
9492

9593
Tick *time.Ticker
96-
t tomb.Tomb
9794
Client *http.Client
9895
}
9996

healthcheck/tcp.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99

1010
"github.com/pkg/errors"
1111
"go.uber.org/zap"
12-
13-
"gopkg.in/tomb.v2"
1412
)
1513

1614
// TCPHealthcheckConfiguration defines a TCP healthcheck configuration
@@ -56,7 +54,6 @@ type TCPHealthcheck struct {
5654
URL string
5755

5856
Tick *time.Ticker
59-
t tomb.Tomb
6057
}
6158

6259
// buildURL build the target URL for the TCP healthcheck, depending of its

healthcheck/tls.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"github.com/appclacks/cabourotte/tls"
1212
"github.com/pkg/errors"
1313
"go.uber.org/zap"
14-
"gopkg.in/tomb.v2"
1514
)
1615

1716
// TLSHealthcheckConfiguration defines a TLS healthcheck configuration
@@ -38,7 +37,6 @@ type TLSHealthcheck struct {
3837
TLSConfig *cryptotls.Config
3938

4039
Tick *time.Ticker
41-
t tomb.Tomb
4240
}
4341

4442
// Validate validates the healthcheck configuration

0 commit comments

Comments
 (0)