Merge pull request #1555 from crosbymichael/client-lint

Update client to pass go lint
This commit is contained in:
Phil Estes
2017-09-25 13:26:31 -04:00
committed by GitHub
8 changed files with 31 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ func dialer(address string, timeout time.Duration) (net.Conn, error) {
return net.DialTimeout("unix", address, timeout)
}
// DialAddress returns the address with unix:// prepended to the
// provided address
func DialAddress(address string) string {
return fmt.Sprintf("unix://%s", address)
}