summaryrefslogtreecommitdiff
path: root/util/network.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
committerWolfy-J <[email protected]>2019-06-24 14:00:51 +0300
commit3293b9d9009f04eb874de90ccb82e33fe76a5e07 (patch)
tree17105b61be3d81047229e8107f1c65a31f9da91d /util/network.go
parented7ba40a04f32d04f1e565fe0fb973aa0e0574a9 (diff)
golint
Diffstat (limited to 'util/network.go')
-rw-r--r--util/network.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/util/network.go b/util/network.go
index 510a97a9..70e38fdb 100644
--- a/util/network.go
+++ b/util/network.go
@@ -7,6 +7,7 @@ import (
"syscall"
)
+// CreateListener crates socket listener based on DSN definition.
func CreateListener(address string) (net.Listener, error) {
dsn := strings.Split(address, "://")
if len(dsn) != 2 {