josiahcarlson / redis-in-action

Example code from the book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A bug in Golang code

Weless opened this issue · comments

position: golang/Chapter02/model/client.go UpdateToken method

line35 r.Conn.HSet("viewed:"+token, item, timestamp)
it should be r.Conn.ZAdd(...)

Thank you for the report, will update soon.

Finally had time to look at and fix, thank you for the bug report.