Skip to content
Snippets Groups Projects
Unverified Commit 5dec0554 authored by capossele's avatar capossele
Browse files

:rotating_light: Fix client pkg linter warning

parent fe350571
No related branches found
No related tags found
No related merge requests found
...@@ -28,8 +28,8 @@ func (api *GoShimmerAPI) FindMessageByID(base58EncodedIDs []string) (*webapi_mes ...@@ -28,8 +28,8 @@ func (api *GoShimmerAPI) FindMessageByID(base58EncodedIDs []string) (*webapi_mes
return res, nil return res, nil
} }
// SendPayload send a message with the given payload.
func (api *GoShimmerAPI) SendPayload(payload []byte) (string, error) { func (api *GoShimmerAPI) SendPayload(payload []byte) (string, error) {
res := &webapi_message.MessageResponse{} res := &webapi_message.MessageResponse{}
if err := api.do(http.MethodPost, routeSendPayload, if err := api.do(http.MethodPost, routeSendPayload,
&webapi_message.MessageRequest{Payload: payload}, res); err != nil { &webapi_message.MessageRequest{Payload: payload}, res); err != nil {
......
...@@ -13,7 +13,7 @@ require ( ...@@ -13,7 +13,7 @@ require (
github.com/go-ole/go-ole v1.2.4 // indirect github.com/go-ole/go-ole v1.2.4 // indirect
github.com/gobuffalo/packr/v2 v2.7.1 github.com/gobuffalo/packr/v2 v2.7.1
github.com/golang/protobuf v1.3.5 github.com/golang/protobuf v1.3.5
github.com/google/go-cmp v0.4.1 github.com/google/go-cmp v0.4.1 // indirect
github.com/gorilla/websocket v1.4.1 github.com/gorilla/websocket v1.4.1
github.com/iotaledger/hive.go v0.0.0-20200618165014-e1cb7f9a0afb github.com/iotaledger/hive.go v0.0.0-20200618165014-e1cb7f9a0afb
github.com/iotaledger/iota.go v1.0.0-beta.14 github.com/iotaledger/iota.go v1.0.0-beta.14
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment