Skip to content

Commit 1ec4de1

Browse files
authored
chore(deps): upgrade sqlplus (#9)
1 parent 77e1d07 commit 1ec4de1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/chenquan/sqlbreaker
33
go 1.16
44

55
require (
6-
github.com/chenquan/sqlplus v0.1.1
6+
github.com/chenquan/sqlplus v0.2.0
77
github.com/stretchr/testify v1.8.0
88
)

hook.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ func NewBreakerHook(brk breaker.Breaker) *Hook {
2323
return &Hook{brk: brk}
2424
}
2525

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+
return ctx, err
32+
}
33+
2634
func (h *Hook) BeforeConnect(ctx context.Context, err error) (context.Context, error) {
2735
return ctx, err
2836
}

0 commit comments

Comments
 (0)