From 89e48a97e87c5947d38354536f697f2f3e6196ad Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 25 Jul 2025 17:32:04 +1000 Subject: [PATCH] chore (refactoring): cleanup main --- cmd/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 02eccd63..6933aa5d 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -24,14 +24,11 @@ func main() { } func Run(routes *mux.Router, app App) { - // Routes are served via plugins to avoid getting stuck with plain HTTP. The idea is to - // support many more protocols in the future: HTTPS, HTTP2, TOR or whatever that sounds - // fancy I don't know much when this got written: IPFS, solid, ... Log.Info("Filestash %s starting", APP_VERSION) check(InitLogger(), "Logger init failed. err=%s") check(InitConfig(), "Config init failed. err=%s") check(model.PluginDiscovery(), "Plugin Discovery failed. err=%s") - ctrl.InitPluginList(embed.EmbedPluginList, model.PLUGINS) + check(ctrl.InitPluginList(embed.EmbedPluginList, model.PLUGINS), "Plugin Initialisation failed. err=%s") if len(Hooks.Get.Starter()) == 0 { check(ErrNotFound, "Missing starter plugin. err=%s") }