We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77e1d07 commit 1ec4de1Copy full SHA for 1ec4de1
go.mod
@@ -3,6 +3,6 @@ module github.com/chenquan/sqlbreaker
3
go 1.16
4
5
require (
6
- github.com/chenquan/sqlplus v0.1.1
+ github.com/chenquan/sqlplus v0.2.0
7
github.com/stretchr/testify v1.8.0
8
)
hook.go
@@ -23,6 +23,14 @@ func NewBreakerHook(brk breaker.Breaker) *Hook {
23
return &Hook{brk: brk}
24
}
25
26
+func (h *Hook) BeforeClose(ctx context.Context, err error) (context.Context, error) {
27
+ return ctx, err
28
+}
29
+
30
+func (h *Hook) AfterClose(ctx context.Context, err error) (context.Context, error) {
31
32
33
34
func (h *Hook) BeforeConnect(ctx context.Context, err error) (context.Context, error) {
35
return ctx, err
36
0 commit comments