Skip to content

Commit e2baf62

Browse files
committed
update dependencies
1 parent 5ec17fb commit e2baf62

File tree

5 files changed

+9
-78
lines changed

5 files changed

+9
-78
lines changed

callstack.go

Lines changed: 0 additions & 75 deletions
This file was deleted.

go.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ package crashproof
33
import (
44
"runtime/debug"
55
"sync"
6+
7+
callstack "github.com/codemodify/systemkit-callstack"
68
)
79

810
// ConcurrentCodeCrashCatcherDelegate -
9-
type ConcurrentCodeCrashCatcherDelegate func(err interface{}, packageName string, callStack []StackFrame)
11+
type ConcurrentCodeCrashCatcherDelegate func(err interface{}, packageName string, callStack []callstack.Frame)
1012

1113
// ConcurrentCodeCrashCatcher -
1214
var ConcurrentCodeCrashCatcher ConcurrentCodeCrashCatcherDelegate
@@ -24,7 +26,7 @@ func GoWithArgs(concurrentCode func(args ...interface{}), args ...interface{}) {
2426
defer func() {
2527
debug.SetPanicOnFault(true)
2628
if err := recover(); err != nil {
27-
packageName, callStack := GetCallStack(err)
29+
packageName, callStack := callstack.Get()
2830
if ConcurrentCodeCrashCatcher != nil {
2931
ConcurrentCodeCrashCatcher(err, packageName, callStack)
3032
}

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module github.com/codemodify/systemkit-crashproof
22

33
go 1.13
4+
5+
require github.com/codemodify/systemkit-callstack v1.0.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/codemodify/systemkit-callstack v1.0.1 h1:R/uX47JS+QMru1dzO83CSxpHfztcD9hbZInkUqN3Chs=
2+
github.com/codemodify/systemkit-callstack v1.0.1/go.mod h1:tL2pYKPdNPOIwmZH9ZfR035fRfT5vObZn0Qd7gYryY4=

license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
# ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~ ~~~~
1010
#
1111
# You are free to use this art project as you see fit.
12-
# There are no restrictions or obligations of any kind.
12+
# There are no mutual restrictions or mutual obligations of any kind.
1313
#

0 commit comments

Comments
 (0)