commit fb7eae1dc0bea7f5f4a0c16ce46685e18adb4902
parent 8e1bca1527e57fa25eaf037fc2de06b052011fe1
Author: parazyd <parazyd@dyne.org>
Date: Sun, 28 Oct 2018 21:39:18 +0100
Simplify time.Now call in dam-dir.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmd/dam-dir/main.go b/cmd/dam-dir/main.go
@@ -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()