You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pool.go
    path of file: ./repos/wundergraph/pkg/pool
    
    the code of the file until where you have to start completion: package pool

import (
	"bytes"
	"context"
	"hash"
	"net/http"
	"sync"

	"github.com/cespare/xxhas
    
func GetCtx(r, clientRequest *http.Request, cfg Config) *resolve.Context {
	next := ctxPool.Get()
	ctx := context.WithValue(r.Context(), ClientRequestKey, clientRequest)
	if next == nil {
		resolveCtx := resolve.NewContext(ctx)
		resolveCtx.Request.Header = clientRequest.Header
		resolveCtx.RenameTypeNames = cfg.RenameTypeNames
		return resolveCtx
	}
	resolveContext := next.(*resolve.Context).WithContext(ctx)
	resolveContext.Request.Header = clientRequest.Header
	resolveContext.RenameTypeNames = cfg.RenameTypeNames
	return resolveContext
}