File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func main() {
42
42
}
43
43
44
44
// Set apmplus as a global callback
45
- callbacks.InitCallbackHandlers ([]callbacks. Handler { cbh} )
45
+ callbacks.AppendGlobalHandlers ( cbh)
46
46
47
47
g := NewGraph[string ,string ]()
48
48
/*
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ func main() {
42
42
}
43
43
44
44
// 设置apmplus为全局callback
45
- callbacks.InitCallbackHandlers ([]callbacks. Handler { cbh} )
45
+ callbacks.AppendGlobalHandlers ( cbh)
46
46
47
47
g := NewGraph[string ,string ]()
48
48
/*
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func TestApmplusCallback(t *testing.T) {
37
37
ServiceName : "MyService" ,
38
38
Release : "release" ,
39
39
})
40
- callbacks .InitCallbackHandlers ([]callbacks. Handler { cbh } )
40
+ callbacks .AppendGlobalHandlers ( cbh )
41
41
ctx := context .Background ()
42
42
43
43
g := compose .NewGraph [string , string ]()
Original file line number Diff line number Diff line change @@ -45,5 +45,5 @@ func main() {
45
45
}
46
46
47
47
// Set apmplus as a global callback
48
- callbacks .InitCallbackHandlers ([]callbacks. Handler { cbh } )
48
+ callbacks .AppendGlobalHandlers ( cbh )
49
49
}
You can’t perform that action at this time.
0 commit comments