Skip to content

Commit

Permalink
Return a SignedResponse from the client query-storage-deal command (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ingar authored Sep 11, 2019
1 parent 9e3b36f commit 82937c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ format is specified with the --enc flag.

return re.Emit(resp)
},
Type: storagedeal.Response{},
Type: storagedeal.SignedResponse{},
Encoders: cmds.EncoderMap{
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.Response) error {
cmds.Text: cmds.MakeTypedEncoder(func(req *cmds.Request, w io.Writer, resp *storagedeal.SignedResponse) error {
fmt.Fprintf(w, "Status: %s\n", resp.State.String()) // nolint: errcheck
fmt.Fprintf(w, "Message: %s\n", resp.Message) // nolint: errcheck
return nil
Expand Down

0 comments on commit 82937c7

Please sign in to comment.