Skip to content

Commit

Permalink
chore: clarified a godoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Jul 18, 2023
1 parent 063787f commit 844a3a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arrangehttp/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func (f DefaultListenerFactory) Listen(ctx context.Context, server *http.Server)
return l, nil
}

// NewListener encapsulates the logic for creating a net.Listener for a server. Typically,
// this function should be called from within an start fx.Hook.
// NewListener encapsulates the logic for creating a net.Listener for a server.
// This function should be called from within a start hook, typically via fx.Hook.OnStart.
//
// The ListenerFactory may be nil, in which case an instance of DefaultListenerFactory will be used.
func NewListener(ctx context.Context, lf ListenerFactory, server *http.Server, lm ...ListenerMiddleware) (l net.Listener, err error) {
Expand Down

0 comments on commit 844a3a8

Please sign in to comment.