Skip to content

Commit 9734d74

Browse files
committed
updated 2/
1 parent 320ac81 commit 9734d74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/server/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (ctrl *Controller) Start() {
7575
w := logger.Writer()
7676
defer w.Close()
7777
s := &http.Server{
78-
Addr: ctrl.cfg.Server.ApibuildInfoJSONndAddr,
78+
Addr: ctrl.cfg.Server.ApiBindAddr,
7979
Handler: mux,
8080
ReadTimeout: 10 * time.Second,
8181
WriteTimeout: 10 * time.Second,

pkg/server/labels.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (ctrl *Controller) labelsHandler(w http.ResponseWriter, _ *http.Request) {
1919
w.Write(b)
2020
}
2121

22-
func (ctrl *Controller) labelValuesHandler(w http.ResponseWriter, _ *http.Request) {
22+
func (ctrl *Controller) labelValuesHandler(w http.ResponseWriter, r *http.Request) {
2323
res := []string{}
2424
labelName := r.URL.Query().Get("label")
2525
ctrl.s.GetValues(labelName, func(v string) bool {

pkg/storage/labels/labels.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type Labels struct {
1111
db *badger.DB
1212
}
1313

14-
func New(_, db *badger.DB) *Labels {
14+
func New(cfg *config.Config, db *badger.DB) *Labels {
1515
ll := &Labels{
1616
db: db,
1717
}

0 commit comments

Comments
 (0)