Open poteto0 opened 2 weeks ago
use method, echo.AcqurireContext which defined.
echo.AcqurireContext
-func (e *Echo) AcquireContext() Context { - return e.pool.Get().(Context) +func (e *Echo) AcquireContext() *context { + return e.pool.Get().(*context) } func (e *Echo) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Acquire context - c := e.pool.Get().(*context) + c := e.AcquireContext() .... // Release context - e.pool.Put(c) + e.ReleaseContext(c) }
CHANGE
use method,
echo.AcqurireContext
which defined.