Add a empty statik.go to avoid test_lint failure and add gocyclo for BroadcastTxRequestHandlerFn

This commit is contained in:
HaoyangLiu 2018-09-13 22:35:23 +08:00
parent 69b9a53b53
commit 0f29a26efa
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,12 @@
// Code generated by statik. DO NOT EDIT.
package statik
import (
"github.com/rakyll/statik/fs"
)
func init() {
data := ""
fs.Register(data)
}

View File

@ -21,7 +21,8 @@ type BroadcastBody struct {
Return string `json:"return"`
}
// BroadcastTx REST Handler
// BroadcastTxRequestHandlerFn REST Handler
// nolint: gocyclo
func BroadcastTxRequestHandlerFn(cdc *wire.Codec, ctx context.CLIContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
var txBody BroadcastBody