tSimplify time.Now call in dam-dir. - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit fb7eae1dc0bea7f5f4a0c16ce46685e18adb4902
DIR parent 8e1bca1527e57fa25eaf037fc2de06b052011fe1
HTML Author: parazyd <parazyd@dyne.org>
Date: Sun, 28 Oct 2018 21:39:18 +0100
Simplify time.Now call in dam-dir.
Diffstat:
M cmd/dam-dir/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go
t@@ -215,7 +215,7 @@ func pollNodeTTL(interval int64) {
log.Println("Polling redis for expired nodes")
nodes, err := lib.RedisCli.Keys("*.onion").Result()
lib.CheckError(err)
- now := time.Time.Unix(time.Now())
+ now := time.Now().Unix()
for _, i := range nodes {
res, err := lib.RedisCli.HGet(i, "lastseen").Result()