Browse Source

Merge pull request #1315 from varun06/save-a-go-routine

remove go keyword from channel close in singleton
Vlad Gorodetsky 6 years ago
parent
commit
3a0da3a2b7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      offset_manager.go

+ 1 - 1
offset_manager.go

@@ -576,6 +576,6 @@ func (pom *partitionOffsetManager) handleError(err error) {
 
 
 func (pom *partitionOffsetManager) release() {
 func (pom *partitionOffsetManager) release() {
 	pom.releaseOnce.Do(func() {
 	pom.releaseOnce.Do(func() {
-		go close(pom.errors)
+		close(pom.errors)
 	})
 	})
 }
 }