Merge branch 'master' of github.com:Araq/Nimrod
This commit is contained in:
commit
0ca559b40d
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ type
|
||||||
|
|
||||||
proc open*(host = "localhost", port = 6379.TPort): TRedis =
|
proc open*(host = "localhost", port = 6379.TPort): TRedis =
|
||||||
## Opens a connection to the redis server.
|
## Opens a connection to the redis server.
|
||||||
result.socket = socket()
|
result.socket = socket(buffered = false)
|
||||||
if result.socket == InvalidSocket:
|
if result.socket == InvalidSocket:
|
||||||
OSError()
|
OSError()
|
||||||
result.socket.connect(host, port)
|
result.socket.connect(host, port)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue