From 461be87be3c3bac52aab3bd20591ae23f3b5ee73 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Mon, 4 Jun 2018 23:22:56 +0200 Subject: [PATCH] whisper: re-insert #16757 that has been lost during a merge --- whisper/shhclient/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go index 8e7085a0a66a..a814154e4795 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