Skip to content

Commit

Permalink
fix deprecated import
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jul 29, 2023
1 parent 13eaac1 commit 1b08251
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/metrics-and-dashboards/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"

rcmgr "github.com/libp2p/go-libp2p/p2p/host/resource-manager"
rcmgrObs "github.com/libp2p/go-libp2p/p2p/host/resource-manager/obs"
)

const ClientCount = 32
Expand All @@ -28,9 +27,9 @@ func main() {
log.Fatal(http.ListenAndServe(":5001", nil))
}()

rcmgrObs.MustRegisterWith(prometheus.DefaultRegisterer)
rcmgr.MustRegisterWith(prometheus.DefaultRegisterer)

str, err := rcmgrObs.NewStatsTraceReporter()
str, err := rcmgr.NewStatsTraceReporter()
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 1b08251

Please sign in to comment.