good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
d85d3c74
Commit
d85d3c74
authored
8 years ago
by
Kenji Siu
Browse files
Options
Downloads
Patches
Plain Diff
internal/debug, internal/ethapi, rpc, swarm/storage: Ran "go fmt"
parent
4dc1fb92
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
internal/debug/flags.go
+1
-1
1 addition, 1 deletion
internal/debug/flags.go
internal/ethapi/tracer.go
+22
-22
22 additions, 22 deletions
internal/ethapi/tracer.go
rpc/http.go
+1
-1
1 addition, 1 deletion
rpc/http.go
swarm/storage/chunker_test.go
+0
-1
0 additions, 1 deletion
swarm/storage/chunker_test.go
with
24 additions
and
25 deletions
internal/debug/flags.go
+
1
−
1
View file @
d85d3c74
...
...
@@ -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"
,
}
...
...
This diff is collapsed.
Click to expand it.
internal/ethapi/tracer.go
+
22
−
22
View file @
d85d3c74
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
rpc/http.go
+
1
−
1
View file @
d85d3c74
...
...
@@ -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
)
}
This diff is collapsed.
Click to expand it.
swarm/storage/chunker_test.go
+
0
−
1
View file @
d85d3c74
...
...
@@ -28,7 +28,6 @@ import (
"time"
)
/*
Tests TreeChunker by splitting and joining a random byte slice
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment