Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authDB/src/commit/4a639c52e4e1710ab420132210a542cd5df299e6/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)
}
}