mirror of
https://github.com/arnaucube/go-dvote.git
synced 2026-02-28 05:26:46 +01:00
Consolidate raw
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user