Skip to content

Commit 2cad2d5

Browse files
authored
Merge pull request #14 from pswilde/master
create release for compatibility with nim 2.0
2 parents 39003ed + 477836f commit 2cad2d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ssh2/private/utils.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ proc waitsocket*(session: Session, socket: AsyncSocket): int =
1313
readfd: TFdSet
1414
dir: int
1515

16-
timeout.tv_sec = 10
16+
timeout.tv_sec = 10.Time
1717
timeout.tv_usec = 0
1818

1919
FD_ZERO(fd)
@@ -36,4 +36,4 @@ proc waitsocket*(s: SSHClient): int {.inline.} = waitsocket(s.session, s.socket)
3636
template wait*(body: untyped) =
3737
while body != LIBSSH2_ERROR_EAGAIN: break
3838

39-
proc `|`*[T](a, b: T): T = cast[T](a or b)
39+
proc `|`*[T](a, b: T): T = cast[T](a or b)

ssh2.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.1.4"
3+
version = "0.1.5"
44
author = "Huy Doan"
55
description = "SSH, SCP and SFTP client for Nim"
66
license = "MIT"

0 commit comments

Comments
 (0)