Explorar o código

remove go keyword from channel close in singleton

Varun %!s(int64=6) %!d(string=hai) anos
pai
achega
0fab210f8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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() {
 	pom.releaseOnce.Do(func() {
-		go close(pom.errors)
+		close(pom.errors)
 	})
 }