diff --git a/core/module/module.go b/core/module/module.go index 3b0fcef..0cd7567 100644 --- a/core/module/module.go +++ b/core/module/module.go @@ -51,7 +51,7 @@ func Register(ctx context.Context, mCfgs []Config, mux *http.ServeMux, mgr handl } // addMiddleware applies middleware plugins to the provided handler in reverse order. -// It retrieves middleware instances from the plugin manager and chains them to the handler. +// It retrieves middleware instances from the plugin manager and chains them to the handler.. func addMiddleware(ctx context.Context, mgr handler.PluginManager, handler http.Handler, hCfg *handler.Config) (http.Handler, error) { mws := hCfg.Plugins.Middleware log.Debugf(ctx, "Applying %d middleware(s) to the handler", len(mws)) diff --git a/core/module/module_test.go b/core/module/module_test.go index 8f9016c..8737968 100644 --- a/core/module/module_test.go +++ b/core/module/module_test.go @@ -99,7 +99,7 @@ func TestRegisterSuccess(t *testing.T) { } } -// TestRegisterFailure tests scenarios where the handler registration should fail. +// TestRegisterFailure tests scenarios where the handler registration should fail.. func TestRegisterFailure(t *testing.T) { tests := []struct { name string