Skip to content

Commit

Permalink
fix(metrics): add http server for metrics.
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy committed Dec 28, 2024
1 parent e3b5006 commit e62c59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion relay/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func New(cfg *config.Config) (*Relay, error) {

gs := grpc.New(&cfg.GRPCServer, r, db, time.Now())

hs, err := http.New(cfg.Metrics, db)
hs, err := http.New(cfg.Metrics)
if err != nil {
return nil, err
}
Expand Down
3 changes: 1 addition & 2 deletions server/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"net/http"
"strconv"

"github.com/dezh-tech/immortal/database"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
Expand All @@ -15,7 +14,7 @@ type Server struct {
config Config
}

func New(cfg Config, db *database.Database) (*Server, error) {
func New(cfg Config) (*Server, error) {
r := mux.NewRouter()

s := &Server{
Expand Down

0 comments on commit e62c59e

Please sign in to comment.