|
|
@ -53,7 +53,7 @@ func main() { |
|
|
|
for { |
|
|
|
fmt.Printf("-> Sending %s pss to [%s]\n", kind, key) |
|
|
|
currentTime := int64(time.Now().Unix()) |
|
|
|
err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello world from %s at %d", hostname, currentTime), "") |
|
|
|
err := sn.PssPub(kind, key, topic, fmt.Sprintf("Hello I am %s, time is %d, my pubKey is %s", hostname, currentTime, sn.PssPubKey), "") |
|
|
|
log.Info("pss sent", "err", err) |
|
|
|
time.Sleep(10 * time.Second) |
|
|
|
} |
|
|
|