mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +00:00
Renamed callerViewer to _callViewer to align with other "view" structs
This commit is contained in:
parent
8d802608f5
commit
27ace57951
1 changed files with 3 additions and 3 deletions
|
|
@ -1983,11 +1983,11 @@ func (r *receiptView) String() string {
|
||||||
return fmt.Sprintf("[status=%s, gasUsed=%d, logs=%d]", status, r.GasUsed, len(r.Logs))
|
return fmt.Sprintf("[status=%s, gasUsed=%d, logs=%d]", status, r.GasUsed, len(r.Logs))
|
||||||
}
|
}
|
||||||
|
|
||||||
type callerViewer struct {
|
type _callerView struct {
|
||||||
skipFrame int
|
skipFrame int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v callerViewer) String() string {
|
func (v _callerView) String() string {
|
||||||
_, file, line, found := runtime.Caller(v.skipFrame)
|
_, file, line, found := runtime.Caller(v.skipFrame)
|
||||||
if !found {
|
if !found {
|
||||||
return "<unknown>"
|
return "<unknown>"
|
||||||
|
|
@ -2009,7 +2009,7 @@ func (v callerViewer) String() string {
|
||||||
// In this example, with `callerView(2)` which means skip 3 call frames, you would get
|
// In this example, with `callerView(2)` which means skip 3 call frames, you would get
|
||||||
// you to ProcessCall frame and `callerView` would print that.
|
// you to ProcessCall frame and `callerView` would print that.
|
||||||
func callerView(skipFrame int) fmt.Stringer {
|
func callerView(skipFrame int) fmt.Stringer {
|
||||||
return callerViewer{skipFrame}
|
return _callerView{skipFrame}
|
||||||
}
|
}
|
||||||
|
|
||||||
func emptyBytesToNil(in []byte) []byte {
|
func emptyBytesToNil(in []byte) []byte {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue