Skip to content

Commit

Permalink
Removing unused parameter after #53 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelewski authored May 7, 2024
1 parent c80cb98 commit 0a7ccc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion quesma/quesma/quesma.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func NewQuesmaTcpProxy(phoneHomeAgent telemetry.PhoneHomeAgent, config config.Qu
func NewHttpProxy(phoneHomeAgent telemetry.PhoneHomeAgent, logManager *clickhouse.LogManager, indexManager elasticsearch.IndexManagement, config config.QuesmaConfiguration, logChan <-chan tracing.LogWithLevel) *Quesma {
quesmaManagementConsole := ui.NewQuesmaManagementConsole(config, logManager, indexManager, logChan, phoneHomeAgent)
queryRunner := NewQueryRunner(logManager, config, indexManager, quesmaManagementConsole)
router := configureRouter(config, logManager, indexManager, quesmaManagementConsole, phoneHomeAgent, queryRunner)
router := configureRouter(config, logManager, quesmaManagementConsole, phoneHomeAgent, queryRunner)
return &Quesma{
telemetryAgent: phoneHomeAgent,
processor: newDualWriteProxy(logManager, indexManager, config, router, quesmaManagementConsole, phoneHomeAgent, queryRunner),
Expand Down
2 changes: 1 addition & 1 deletion quesma/quesma/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
quesmaAsyncIdPrefix = "quesma_async_search_id_"
)

func configureRouter(cfg config.QuesmaConfiguration, lm *clickhouse.LogManager, im elasticsearch.IndexManagement, console *ui.QuesmaManagementConsole, phoneHomeAgent telemetry.PhoneHomeAgent, queryRunner *QueryRunner) *mux.PathRouter {
func configureRouter(cfg config.QuesmaConfiguration, lm *clickhouse.LogManager, console *ui.QuesmaManagementConsole, phoneHomeAgent telemetry.PhoneHomeAgent, queryRunner *QueryRunner) *mux.PathRouter {
router := mux.NewPathRouter()
router.RegisterPath(routes.ClusterHealthPath, "GET", func(_ context.Context, body string, _ string, params map[string]string) (*mux.Result, error) {
return elasticsearchQueryResult(`{"cluster_name": "quesma"}`, httpOk), nil
Expand Down

0 comments on commit 0a7ccc3

Please sign in to comment.