Skip to content

Commit

Permalink
http server: rename getLister to listener
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Oct 13, 2022
1 parent a9a7fa2 commit 26fc955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (hs *HTTPServer) configureHTTP2() error {
}

func (hs *HTTPServer) Run(ctx context.Context) error {
listener, err := hs.getListener()
listener, err := hs.listener()
if err != nil {
return err
}
Expand Down Expand Up @@ -209,7 +209,7 @@ func (hs *HTTPServer) Run(ctx context.Context) error {
return nil
}

func (hs *HTTPServer) getListener() (net.Listener, error) {
func (hs *HTTPServer) listener() (net.Listener, error) {
if hs.Listener != nil {
return hs.Listener, nil
}
Expand Down

0 comments on commit 26fc955

Please sign in to comment.