diff options
author | Kenji Siu <kenji@isuntv.com> | 2016-11-01 17:23:24 +0800 |
---|---|---|
committer | Kenji Siu <kenji@isuntv.com> | 2016-11-01 18:40:36 +0800 |
commit | d85d3c74db4ddb179366587e5c3afb048e85b50a (patch) | |
tree | 60ccf2ce3cbccc364f7494965d987bb755351b1e | |
parent | 4dc1fb923ab77fe564bdda25f36744dffa235045 (diff) | |
download | dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar.gz dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar.bz2 dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar.lz dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar.xz dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.tar.zst dexon-d85d3c74db4ddb179366587e5c3afb048e85b50a.zip |
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
-rw-r--r-- | internal/debug/flags.go | 2 | ||||
-rw-r--r-- | internal/ethapi/tracer.go | 44 | ||||
-rw-r--r-- | rpc/http.go | 2 | ||||
-rw-r--r-- | swarm/storage/chunker_test.go | 1 |
4 files changed, 24 insertions, 25 deletions
diff --git a/internal/debug/flags.go b/internal/debug/flags.go index ed17f87c4..d7bbfae1e 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -53,7 +53,7 @@ var ( Value: 6060, } pprofAddrFlag = cli.StringFlag{ - Name: "pprofaddr", + Name: "pprofaddr", Usage: "pprof HTTP server listening interface", Value: "127.0.0.1", } diff --git a/internal/ethapi/tracer.go b/internal/ethapi/tracer.go index c6d4f814e..5f69826a3 100644 --- a/internal/ethapi/tracer.go +++ b/internal/ethapi/tracer.go @@ -167,17 +167,17 @@ func (dw *dbWrapper) toValue(vm *otto.Otto) otto.Value { // JavascriptTracer provides an implementation of Tracer that evaluates a // Javascript function for each VM execution step. type JavascriptTracer struct { - vm *otto.Otto // Javascript VM instance - traceobj *otto.Object // User-supplied object to call - log map[string]interface{} // (Reusable) map for the `log` arg to `step` - logvalue otto.Value // JS view of `log` - memory *memoryWrapper // Wrapper around the VM memory - memvalue otto.Value // JS view of `memory` - stack *stackWrapper // Wrapper around the VM stack - stackvalue otto.Value // JS view of `stack` - db *dbWrapper // Wrapper around the VM environment - dbvalue otto.Value // JS view of `db` - err error // Error, if one has occurred + vm *otto.Otto // Javascript VM instance + traceobj *otto.Object // User-supplied object to call + log map[string]interface{} // (Reusable) map for the `log` arg to `step` + logvalue otto.Value // JS view of `log` + memory *memoryWrapper // Wrapper around the VM memory + memvalue otto.Value // JS view of `memory` + stack *stackWrapper // Wrapper around the VM stack + stackvalue otto.Value // JS view of `stack` + db *dbWrapper // Wrapper around the VM environment + dbvalue otto.Value // JS view of `db` + err error // Error, if one has occurred } // NewJavascriptTracer instantiates a new JavascriptTracer instance. @@ -222,17 +222,17 @@ func NewJavascriptTracer(code string) (*JavascriptTracer, error) { db := &dbWrapper{} return &JavascriptTracer{ - vm: vm, - traceobj: jstracer, - log: log, - logvalue: logvalue, - memory: mem, - memvalue: mem.toValue(vm), - stack: stack, - stackvalue: stack.toValue(vm), - db: db, - dbvalue: db.toValue(vm), - err: nil, + vm: vm, + traceobj: jstracer, + log: log, + logvalue: logvalue, + memory: mem, + memvalue: mem.toValue(vm), + stack: stack, + stackvalue: stack.toValue(vm), + db: db, + dbvalue: db.toValue(vm), + err: nil, }, nil } diff --git a/rpc/http.go b/rpc/http.go index c923580bf..7d4fe5d47 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -170,7 +170,7 @@ func newCorsHandler(srv *Server, corsString string) http.Handler { c := cors.New(cors.Options{ AllowedOrigins: allowedOrigins, AllowedMethods: []string{"POST", "GET"}, - MaxAge: 600, + MaxAge: 600, }) return c.Handler(srv) } diff --git a/swarm/storage/chunker_test.go b/swarm/storage/chunker_test.go index 4f05cd1cc..40f870246 100644 --- a/swarm/storage/chunker_test.go +++ b/swarm/storage/chunker_test.go @@ -28,7 +28,6 @@ import ( "time" ) - /* Tests TreeChunker by splitting and joining a random byte slice */ |