mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-18 04:41:26 +01:00
Fix typo maxDeepth -> maxDepth (#15574)
Signed-off-by: Junyoung, Sung <junyoung.sung@naverlabs.com>
This commit is contained in:
parent
8e1ffd022c
commit
251feea1fd
@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const maxDeepth = 50
|
const maxDepth = 50
|
||||||
|
|
||||||
type stack []uintptr
|
type stack []uintptr
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ func (s *stack) frames() StackFrames {
|
|||||||
|
|
||||||
// newStack ...
|
// newStack ...
|
||||||
func newStack() *stack {
|
func newStack() *stack {
|
||||||
var pcs [maxDeepth]uintptr
|
var pcs [maxDepth]uintptr
|
||||||
n := runtime.Callers(3, pcs[:])
|
n := runtime.Callers(3, pcs[:])
|
||||||
var st stack = pcs[0:n]
|
var st stack = pcs[0:n]
|
||||||
return &st
|
return &st
|
||||||
|
Loading…
Reference in New Issue
Block a user