From 0f208750a72f4b2a96851b8b0e0e849569e36bd9 Mon Sep 17 00:00:00 2001 From: Mojtaba Date: Thu, 30 Nov 2023 16:22:39 +0100 Subject: [PATCH] fix: added a comment for clarity --- api/v1/api.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/v1/api.go b/api/v1/api.go index 12c14d1..23bbbef 100644 --- a/api/v1/api.go +++ b/api/v1/api.go @@ -59,6 +59,8 @@ func (a *RESTApiV1) Serve(addr, originAllowed string) error { return a.server.ListenAndServe() } +// Shutdown stops the API server +// Please note that this function does not necessarily stop the running XDP services func (a *RESTApiV1) Shutdown() error { if a.server == nil { return errors.New("server is not running")