Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authDB/src/commit/7350213c64c87c535be1c11a2ad166ec6e047ca1/vendor/github.com/segmentio/kafka-go/buffer.go You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 
 
 
 

27 lines
380 B

package kafka
import (
"bytes"
"sync"
)
var bufferPool = sync.Pool{
New: func() interface{} { return newBuffer() },
}
func newBuffer() *bytes.Buffer {
b := new(bytes.Buffer)
b.Grow(65536)
return b
}
func acquireBuffer() *bytes.Buffer {
return bufferPool.Get().(*bytes.Buffer)
}
func releaseBuffer(b *bytes.Buffer) {
if b != nil {
b.Reset()
bufferPool.Put(b)
}
}