Consolidate raw

This commit is contained in:
p4u
2019-02-25 16:13:55 +01:00
parent 63d6c72bc0
commit cd19d5b044
2 changed files with 10 additions and 6 deletions

View File

@@ -49,9 +49,11 @@ func main() {
}()
hostname, _ := os.Hostname()
for {
fmt.Printf("-> Sending %s pss to [%s]\n", kind, key)
err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello world from %s", hostname), "")
currentTime := int64(time.Now().Unix())
err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello world from %s at %d", hostname, currentTime), "")
log.Info("pss sent", "err", err)
time.Sleep(10 * time.Second)
}