Skip to content

Commit db62d9e

Browse files
Update sdk/metric/pipeline.go
Co-authored-by: Aaron Clawson <[email protected]>
1 parent b2c4778 commit db62d9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/metric/pipeline.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func (p *pipeline) addSync(scope instrumentation.Scope, iSync instrumentSync) {
9696
}
9797

9898
// addCallback registers a callback to be run when `produce()` is called.
99-
func (p *pipeline) addCallback(c callback) func() {
99+
func (p *pipeline) addCallback(c callback) (unregister func()) {
100100
p.Lock()
101101
defer p.Unlock()
102102
e := p.callbacks.PushBack(c)

0 commit comments

Comments
 (0)