Skip to content

Commit

Permalink
fix: added a comment for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Nov 30, 2023
1 parent f9b15e3 commit 0f20875
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0f20875

Please sign in to comment.