@@ -677,9 +677,9 @@ func (self *Pss) SendSym(symkeyid string, topic Topic, msg []byte) error {
677
677
psp , ok := self.symKeyPool [symkeyid ][topic ]
678
678
self .symKeyPoolMu .Unlock ()
679
679
if ! ok {
680
- return fmt .Errorf ("invalid topic '%s' for symkey '%s'" , topic , symkeyid )
680
+ return fmt .Errorf ("invalid topic '%s' for symkey '%s'" , topic . String () , symkeyid )
681
681
} else if psp .address == nil {
682
- return fmt .Errorf ("no address hint for topic '%s' symkey '%s'" , topic , symkeyid )
682
+ return fmt .Errorf ("no address hint for topic '%s' symkey '%s'" , topic . String () , symkeyid )
683
683
}
684
684
err = self .send (* psp .address , topic , msg , false , symkey )
685
685
return err
@@ -697,9 +697,9 @@ func (self *Pss) SendAsym(pubkeyid string, topic Topic, msg []byte) error {
697
697
psp , ok := self.pubKeyPool [pubkeyid ][topic ]
698
698
self .pubKeyPoolMu .Unlock ()
699
699
if ! ok {
700
- return fmt .Errorf ("invalid topic '%s' for pubkey '%s'" , topic , pubkeyid )
700
+ return fmt .Errorf ("invalid topic '%s' for pubkey '%s'" , topic . String () , pubkeyid )
701
701
} else if psp .address == nil {
702
- return fmt .Errorf ("no address hint for topic '%s' pubkey '%s'" , topic , pubkeyid )
702
+ return fmt .Errorf ("no address hint for topic '%s' pubkey '%s'" , topic . String () , pubkeyid )
703
703
}
704
704
go func () {
705
705
self .send (* psp .address , topic , msg , true , common .FromHex (pubkeyid ))
0 commit comments