diff options
author | Andrea Franz <andrea@gravityblast.com> | 2018-05-29 16:36:31 +0800 |
---|---|---|
committer | Guillaume Ballet <gballet@gmail.com> | 2018-05-29 16:36:31 +0800 |
commit | 998f6564b28ea9241d0052c2abee090d2b9a8b63 (patch) | |
tree | d1f6ec5cca1eb845e9fcb217a3c3a895a5b09441 /whisper | |
parent | 40a2c523975d8bf74a0f64c09e628c4f95319376 (diff) | |
download | dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar.gz dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar.bz2 dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar.lz dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar.xz dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.tar.zst dexon-998f6564b28ea9241d0052c2abee090d2b9a8b63.zip |
whisper/shhclient: update call to shh_post to expect string instead of bool (#16757)
Fixes #16756
Diffstat (limited to 'whisper')
-rw-r--r-- | whisper/shhclient/client.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go index 8e7085a0a..a814154e4 100644 --- a/whisper/shhclient/client.go +++ b/whisper/shhclient/client.go @@ -159,9 +159,9 @@ func (sc *Client) DeleteSymmetricKey(ctx context.Context, id string) error { } // Post a message onto the network. -func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) error { - var ignored bool - return sc.c.CallContext(ctx, &ignored, "shh_post", message) +func (sc *Client) Post(ctx context.Context, message whisper.NewMessage) (string, error) { + var hash string + return hash, sc.c.CallContext(ctx, &hash, "shh_post", message) } // SubscribeMessages subscribes to messages that match the given criteria. This method |