Skip to content

Commit 68697ca

Browse files
committedApr 18, 2022
update
1 parent 9b28207 commit 68697ca

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎cgrpc/resolver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func (r *corelibResolver) ResolveNow(op resolver.ResolveNowOptions) {
8787
//systemORcall true - system,false - call
8888
func (r *corelibResolver) triger(notice chan *struct{}, systemORcall bool) {
8989
r.lker.Lock()
90+
defer r.lker.Unlock()
9091
if systemORcall {
9192
if notice != nil {
9293
r.systemNotice[notice] = nil
@@ -106,7 +107,6 @@ func (r *corelibResolver) triger(notice chan *struct{}, systemORcall bool) {
106107
r.cstatus = true
107108
r.call <- nil
108109
}
109-
r.lker.Unlock()
110110
}
111111

112112
//systemORcall true - system,false - call

‎codegen/tml/gomod/template_gomod.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const text = `module {{.}}
1111
go 1.18
1212
1313
require (
14-
github.com/chenjie199234/config v0.1.4
15-
github.com/chenjie199234/Corelib v0.0.67
14+
github.com/chenjie199234/config v0.1.5
15+
github.com/chenjie199234/Corelib v0.0.68
1616
github.com/fsnotify/fsnotify v1.5.1
1717
github.com/go-sql-driver/mysql v1.6.0
1818
github.com/segmentio/kafka-go v0.4.31

‎crpc/resolver.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func (r *corelibResolver) ResolveNow() {
6363
//systemORcall true - system,false - call
6464
func (r *corelibResolver) triger(notice chan *struct{}, systemORcall bool) {
6565
r.lker.Lock()
66+
defer r.lker.Unlock()
6667
if systemORcall {
6768
if notice != nil {
6869
r.systemNotice[notice] = nil
@@ -82,7 +83,6 @@ func (r *corelibResolver) triger(notice chan *struct{}, systemORcall bool) {
8283
r.cstatus = true
8384
r.call <- nil
8485
}
85-
r.lker.Unlock()
8686
}
8787

8888
//systemORcall true - system,false - call

0 commit comments

Comments
 (0)
Please sign in to comment.