Update cmd/futriis/main.go

This commit is contained in:
2026-04-22 21:29:19 +00:00
parent 9fec2d4396
commit 0a49d17e0f

View File

@@ -14,11 +14,6 @@
// Управляет жизненным циклом приложения.
// Файл: cmd/futriis/main.go
// Назначение: Точка входа в приложение СУБД futriis. Инициализирует все компоненты:
// конфигурацию, логгер, хранилище, Raft координатор, ACL менеджер, HTTP API, WebUI и REPL.
// Управляет жизненным циклом приложения.
package main
import (
@@ -125,7 +120,7 @@ func main() {
if cfg.WebUI.Enabled {
logger.Info(fmt.Sprintf("Web UI started on port %d", webUIPort))
// Убрано: вывод строки "Web UI available at http://localhost:9080" в консоль
// utils.PrintInfo(fmt.Sprintf("Web UI available at http://localhost:%d", webUIPort))
}
displayBanner(cfg.Cluster.Name, cfg.WebUI.Enabled, webUIPort)
@@ -161,12 +156,11 @@ func displayBanner(clusterName string, webUIEnabled bool, webUIPort int) {
" Distributed Document-Store in-memory database with support lua plugins ",
" Cluster status: enable (Raft consensus)",
" Cluster name: " + clusterName,
" HTTP API (with curl only): http://localhost:8080/api/",
" HTTP API: http://localhost:8080/api/",
}
if webUIEnabled {
// Строка с Web UI убрана, оставлена только для внутреннего использования
// bannerLines = append(bannerLines, fmt.Sprintf(" Web UI: http://localhost:%d/", webUIPort))
bannerLines = append(bannerLines, fmt.Sprintf(" Web UI: http://localhost:%d/", webUIPort))
}
bannerLines = append(bannerLines, []string{
@@ -188,4 +182,4 @@ func printJSON(data interface{}) {
return
}
fmt.Println(string(jsonData))
}
}