Skip to content

Commit 30d9c4c

Browse files
committed
run linter
1 parent 1a71a2e commit 30d9c4c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

autocomplete/autocomplete.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func getTagCountQuerier(config *config.Config, opts clickhouse.Options) *finder.
8383
config.ClickHouse.TaggedUseDaily,
8484
)
8585
}
86+
8687
return tcq
8788
}
8889

@@ -115,8 +116,10 @@ func (h *Handler) requestExpr(r *http.Request, tcq *finder.TagCountQuerier, from
115116
if err != nil {
116117
return wr, pw, usedTags, err
117118
}
119+
118120
finder.SetCosts(terms, tagValuesCosts)
119121
}
122+
120123
finder.SortTaggedTermsByCost(terms)
121124

122125
wr, pw, err = finder.TaggedWhere(terms, h.config.FeatureFlags.UseCarbonBehavior, h.config.FeatureFlags.DontMatchMissingTags)
@@ -610,7 +613,6 @@ func (h *Handler) ServeValues(w http.ResponseWriter, r *http.Request) {
610613
}
611614

612615
if !findCache {
613-
614616
wr, pw, usedTags, err := h.requestExpr(
615617
r,
616618
getTagCountQuerier(h.config, opts),

finder/tagged.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func NewTagged(url string, table, tag1CountTable string, dailyEnabled, useCarbon
114114
dailyEnabled,
115115
)
116116
}
117+
117118
return fnd
118119
}
119120

0 commit comments

Comments
 (0)