Extend pss delivery chan type

This commit is contained in:
p4u
2019-02-25 16:40:06 +01:00
parent cd19d5b044
commit 1c45bd6bc2
2 changed files with 15 additions and 6 deletions

View File

@@ -40,11 +40,11 @@ func main() {
fmt.Println("First parameter must be sym or asym")
return
}
fmt.Printf("My PSS pubKey is %s\n", sn.PssPubKey)
go func() {
for {
msg := <-sn.PssTopics[topic].Delivery
fmt.Printf("<- Pss received: %s\n", msg)
pmsg := <-sn.PssTopics[topic].Delivery
fmt.Printf("<- Pss received msg:{%s}\n", pmsg.Msg)
}
}()