Change name to listenbuffer

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-02-15 21:10:37 -08:00
parent fb500991ec
commit 16db4da051

View file

@ -3,7 +3,7 @@
listening on a socket, unix, tcp, udp but hold connections listening on a socket, unix, tcp, udp but hold connections
until the application has booted and is ready to accept them until the application has booted and is ready to accept them
*/ */
package socketactivation package listenbuffer
import ( import (
"fmt" "fmt"
@ -11,9 +11,9 @@ import (
"time" "time"
) )
// NewActivationListener returns a listener listening on addr with the protocol. It sets the // NewListenBuffer returns a listener listening on addr with the protocol. It sets the
// timeout to wait on first connection before an error is returned // timeout to wait on first connection before an error is returned
func NewActivationListener(proto, addr string, activate chan struct{}, timeout time.Duration) (net.Listener, error) { func NewListenBuffer(proto, addr string, activate chan struct{}, timeout time.Duration) (net.Listener, error) {
wrapped, err := net.Listen(proto, addr) wrapped, err := net.Listen(proto, addr)
if err != nil { if err != nil {
return nil, err return nil, err