Skip to content

Commit

Permalink
Merge pull request #400 from Ethernal-Tech/replace-armon-dependency
Browse files Browse the repository at this point in the history
replace armon dependency with hashicorp
  • Loading branch information
oliverbundalo authored Oct 4, 2024
2 parents f51dcdc + df7bdfd commit 216b6a8
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion consensus/polybft/consensus_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/0xPolygon/polygon-edge/types"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-metrics"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion consensus/polybft/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/0xPolygon/go-ibft/messages"
"github.com/0xPolygon/go-ibft/messages/proto"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"

"github.com/0xPolygon/polygon-edge/bls"
"github.com/0xPolygon/polygon-edge/chain"
Expand Down
2 changes: 1 addition & 1 deletion consensus/polybft/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package polybft
import (
"time"

"github.com/armon/go-metrics"
"github.com/hashicorp/go-metrics"
"github.com/prometheus/client_golang/prometheus"
)

Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ require (
github.com/alibabacloud-go/tea v1.2.2
github.com/alibabacloud-go/tea-utils/v2 v2.0.7
github.com/aliyun/credentials-go v1.3.10
github.com/armon/go-metrics v0.4.1
github.com/aws/aws-sdk-go v1.55.5
github.com/btcsuite/btcd/btcec/v2 v2.3.4
github.com/docker/docker v27.3.1+incompatible
Expand All @@ -26,6 +25,7 @@ require (
github.com/hashicorp/go-bexpr v0.1.14
github.com/hashicorp/go-hclog v1.6.3
github.com/hashicorp/go-immutable-radix v1.3.1
github.com/hashicorp/go-metrics v0.5.3
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/golang-lru v1.0.2
github.com/hashicorp/hcl v1.0.1-vault-5
Expand Down Expand Up @@ -86,6 +86,7 @@ require (
github.com/alibabacloud-go/tea-utils v1.3.1 // indirect
github.com/alibabacloud-go/tea-xml v1.1.3 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/armon/go-metrics v0.4.1 // indirect
github.com/benbjohnson/clock v1.3.5 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd v0.24.2 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH
github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE=
github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE=
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
Expand Down
2 changes: 1 addition & 1 deletion jsonrpc/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"unicode"

"github.com/0xPolygon/polygon-edge/accounts"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"
jsonIter "github.com/json-iterator/go"
)

Expand Down
2 changes: 1 addition & 1 deletion network/gossip.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync/atomic"

"github.com/0xPolygon/polygon-edge/helper/common"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"
pubsub "github.com/libp2p/go-libp2p-pubsub"
"github.com/libp2p/go-libp2p/core/peer"
"google.golang.org/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion network/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/0xPolygon/polygon-edge/network/common"
"github.com/0xPolygon/polygon-edge/network/dial"
"github.com/0xPolygon/polygon-edge/network/discovery"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-metrics"
"github.com/libp2p/go-libp2p"
"github.com/libp2p/go-libp2p/p2p/security/noise"
rawGrpc "google.golang.org/grpc"
Expand Down
2 changes: 1 addition & 1 deletion network/server_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/0xPolygon/polygon-edge/network/grpc"
"github.com/0xPolygon/polygon-edge/network/identity"
"github.com/0xPolygon/polygon-edge/network/proto"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-metrics"
kbucket "github.com/libp2p/go-libp2p-kbucket"
"github.com/libp2p/go-libp2p-kbucket/keyspace"
"github.com/libp2p/go-libp2p/core/network"
Expand Down
4 changes: 2 additions & 2 deletions server/server_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"time"

"github.com/armon/go-metrics"
"github.com/armon/go-metrics/prometheus"
"github.com/hashicorp/go-metrics"
"github.com/hashicorp/go-metrics/prometheus"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
"gopkg.in/DataDog/dd-trace-go.v1/profiler"
)
Expand Down
2 changes: 1 addition & 1 deletion syncer/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/0xPolygon/polygon-edge/network/event"
"github.com/0xPolygon/polygon-edge/syncer/proto"
"github.com/0xPolygon/polygon-edge/types"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"
"github.com/libp2p/go-libp2p/core/peer"
"google.golang.org/protobuf/types/known/emptypb"
)
Expand Down
2 changes: 1 addition & 1 deletion syncer/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/0xPolygon/polygon-edge/network/grpc"
"github.com/0xPolygon/polygon-edge/syncer/proto"
"github.com/0xPolygon/polygon-edge/types"
"github.com/armon/go-metrics"
"github.com/golang/protobuf/ptypes/empty"
"github.com/hashicorp/go-metrics"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion syncer/syncer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/0xPolygon/polygon-edge/helper/progress"
"github.com/0xPolygon/polygon-edge/network/event"
"github.com/0xPolygon/polygon-edge/types"
"github.com/armon/go-metrics"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"
"github.com/libp2p/go-libp2p/core/peer"
)

Expand Down
2 changes: 1 addition & 1 deletion txpool/slot_gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package txpool
import (
"sync/atomic"

"github.com/armon/go-metrics"
"github.com/hashicorp/go-metrics"

"github.com/0xPolygon/polygon-edge/types"
)
Expand Down
2 changes: 1 addition & 1 deletion txpool/txpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"sync/atomic"
"time"

"github.com/armon/go-metrics"
"github.com/golang/protobuf/ptypes/any"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-metrics"
"github.com/libp2p/go-libp2p/core/peer"
"google.golang.org/grpc"

Expand Down

0 comments on commit 216b6a8

Please sign in to comment.