Skip to content

Commit

Permalink
Merge pull request #30 from maier/master
Browse files Browse the repository at this point in the history
v0.0.13
  • Loading branch information
maier committed Nov 13, 2023
2 parents 5536cd0 + 0fb00d8 commit 1860cd4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.0.13

* fix(lint): unused args
* chore(lint): struct alignment
* build(deps): bump github.com/circonus-labs/go-trapcheck from 0.0.12 to 0.0.13

# v0.0.12

* build(deps): bump github.com/circonus-labs/go-trapcheck from 0.0.10 to 0.0.11
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ go 1.17

require (
github.com/circonus-labs/go-apiclient v0.7.23
github.com/circonus-labs/go-trapcheck v0.0.12
github.com/circonus-labs/go-trapcheck v0.0.13
github.com/openhistogram/circonusllhist v0.3.0
)

require (
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
)
11 changes: 6 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
github.com/circonus-labs/go-apiclient v0.7.23 h1:Bk+l9qLUHPGYND8z8Zxw3+d913ZIybD4CH1y5xSdtCk=
github.com/circonus-labs/go-apiclient v0.7.23/go.mod h1:arbbVvv/xFMvD1eSJqkS+Je1sN/JCpHtiL2GV6oA1Mg=
github.com/circonus-labs/go-trapcheck v0.0.12 h1:+kEOm2u0dk44ebqOhzmFEn6OUs3khaZbqVhCoWA9A1w=
github.com/circonus-labs/go-trapcheck v0.0.12/go.mod h1:q6/NRWWxsX0Bw2PN3fzPhLXtJV8ypeM83fZKzDKaeao=
github.com/circonus-labs/go-trapcheck v0.0.13 h1:7E0WJ1waOzJkFdGbkFxAQr6ueeWJXzeVMI6ARbW+8ZM=
github.com/circonus-labs/go-trapcheck v0.0.13/go.mod h1:g/UL8sdpv8Dp4xZ/ObB9kYCqq01JiSZzR4jATl4XMSQ=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-hclog v0.9.2 h1:CG6TE5H9/JXsFWJCfoIVpKFIkFe6ysEuHirp4DxCsHI=
github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ=
github.com/hashicorp/go-retryablehttp v0.7.2 h1:AcYqCvkpalPnPF2pn0KamgwamS42TqUDDYFRKq/RAd0=
github.com/hashicorp/go-retryablehttp v0.7.2/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/hashicorp/go-retryablehttp v0.7.5 h1:bJj+Pj19UZMIweq/iie+1u5YCdGrnxCT9yvm0e+Nd5M=
github.com/hashicorp/go-retryablehttp v0.7.5/go.mod h1:Jy/gPYAdjqffZ/yFGCFV2doI5wjtH1ewM9u8iYVjtX8=
github.com/openhistogram/circonusllhist v0.3.0 h1:CuEawy94hKEzjhSABdqkGirl6o67QrqtRoZg3CXBn6k=
github.com/openhistogram/circonusllhist v0.3.0/go.mod h1:PfeYJ/RW2+Jfv3wTz0upbY2TRour/LLqIm2K2Kw5zg0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
Expand Down
4 changes: 2 additions & 2 deletions trapmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ type Config struct {
BufferSize uint
}

type TrapMetrics struct { //nolint:govet
metricsmu sync.Mutex
type TrapMetrics struct {
trap Trap
Log Logger
checkTags map[string]string
metrics Metrics
trapID string
globalTags Tags
bufferSize uint
metricsmu sync.Mutex
nonPrintCharReplace rune
}

Expand Down
4 changes: 2 additions & 2 deletions trapmetrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ import (
type FakeTrap struct {
}

func (ft FakeTrap) SendMetrics(ctx context.Context, metrics bytes.Buffer) (*trapcheck.TrapResult, error) {
func (ft FakeTrap) SendMetrics(_ context.Context, metrics bytes.Buffer) (*trapcheck.TrapResult, error) {
fmt.Println(metrics)
return nil, nil
}
func (ft FakeTrap) UpdateCheckTags(ctx context.Context, tags []string) (*apiclient.CheckBundle, error) {
func (ft FakeTrap) UpdateCheckTags(_ context.Context, _ []string) (*apiclient.CheckBundle, error) {
return nil, nil
}

Expand Down

0 comments on commit 1860cd4

Please sign in to comment.