Hi. I'm trying to compile this code 
[https://github.com/dom96/nim-in-action-code/blob/fd4bdb5320b42d0c0b47626aab062926b2a71916/Chapter7/Tweeter/src/database.nim#L82](https://github.com/dom96/nim-in-action-code/blob/fd4bdb5320b42d0c0b47626aab062926b2a71916/Chapter7/Tweeter/src/database.nim#L82),
 but it returns an error:

Error: type mismatch: got <int> but expected one of:

proc `<`(x, y: int): bool
    first type mismatch at position: 2 missing parameter: y
proc `<`(x, y: int64): bool
    first type mismatch at position: 2 missing parameter: y

expression: <len(usernames)

Any idea what might be wrong?

Reply via email to