Skip to content

Commit d85d3c7

Browse files
committed
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
1 parent 4dc1fb9 commit d85d3c7

4 files changed

Lines changed: 24 additions & 25 deletions

File tree

‎internal/debug/flags.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ var (
5353
Value: 6060,
5454
}
5555
pprofAddrFlag = cli.StringFlag{
56-
Name: "pprofaddr",
56+
Name: "pprofaddr",
5757
Usage: "pprof HTTP server listening interface",
5858
Value: "127.0.0.1",
5959
}

‎internal/ethapi/tracer.go‎

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,17 @@ func (dw *dbWrapper) toValue(vm *otto.Otto) otto.Value {
167167
// JavascriptTracer provides an implementation of Tracer that evaluates a
168168
// Javascript function for each VM execution step.
169169
type JavascriptTracer struct {
170-
vm *otto.Otto // Javascript VM instance
171-
traceobj *otto.Object // User-supplied object to call
172-
log map[string]interface{} // (Reusable) map for the `log` arg to `step`
173-
logvalue otto.Value // JS view of `log`
174-
memory *memoryWrapper // Wrapper around the VM memory
175-
memvalue otto.Value // JS view of `memory`
176-
stack *stackWrapper // Wrapper around the VM stack
177-
stackvalue otto.Value // JS view of `stack`
178-
db *dbWrapper // Wrapper around the VM environment
179-
dbvalue otto.Value // JS view of `db`
180-
err error // Error, if one has occurred
170+
vm *otto.Otto // Javascript VM instance
171+
traceobj *otto.Object // User-supplied object to call
172+
log map[string]interface{} // (Reusable) map for the `log` arg to `step`
173+
logvalue otto.Value // JS view of `log`
174+
memory *memoryWrapper // Wrapper around the VM memory
175+
memvalue otto.Value // JS view of `memory`
176+
stack *stackWrapper // Wrapper around the VM stack
177+
stackvalue otto.Value // JS view of `stack`
178+
db *dbWrapper // Wrapper around the VM environment
179+
dbvalue otto.Value // JS view of `db`
180+
err error // Error, if one has occurred
181181
}
182182

183183
// NewJavascriptTracer instantiates a new JavascriptTracer instance.
@@ -222,17 +222,17 @@ func NewJavascriptTracer(code string) (*JavascriptTracer, error) {
222222
db := &dbWrapper{}
223223

224224
return &JavascriptTracer{
225-
vm: vm,
226-
traceobj: jstracer,
227-
log: log,
228-
logvalue: logvalue,
229-
memory: mem,
230-
memvalue: mem.toValue(vm),
231-
stack: stack,
232-
stackvalue: stack.toValue(vm),
233-
db: db,
234-
dbvalue: db.toValue(vm),
235-
err: nil,
225+
vm: vm,
226+
traceobj: jstracer,
227+
log: log,
228+
logvalue: logvalue,
229+
memory: mem,
230+
memvalue: mem.toValue(vm),
231+
stack: stack,
232+
stackvalue: stack.toValue(vm),
233+
db: db,
234+
dbvalue: db.toValue(vm),
235+
err: nil,
236236
}, nil
237237
}
238238

‎rpc/http.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func newCorsHandler(srv *Server, corsString string) http.Handler {
170170
c := cors.New(cors.Options{
171171
AllowedOrigins: allowedOrigins,
172172
AllowedMethods: []string{"POST", "GET"},
173-
MaxAge: 600,
173+
MaxAge: 600,
174174
})
175175
return c.Handler(srv)
176176
}

‎swarm/storage/chunker_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import (
2828
"time"
2929
)
3030

31-
3231
/*
3332
Tests TreeChunker by splitting and joining a random byte slice
3433
*/

0 commit comments

Comments
 (0)