1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 18:20:28 +09:00

Remove parser pool

This commit is contained in:
mcrakhman 2025-01-27 09:58:41 +01:00
parent 39f17121d5
commit 647f2f41ae
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -120,9 +120,7 @@ func (h *headStorage) IterateEntries(ctx context.Context, opts IterOpts, entryIt
}
func (h *headStorage) GetEntry(ctx context.Context, id string) (HeadsEntry, error) {
parser := h.parserPool.Get()
doc, err := h.headsColl.FindIdWithParser(ctx, parser, id)
defer h.parserPool.Put(parser)
doc, err := h.headsColl.FindId(ctx, id)
if err != nil {
return HeadsEntry{}, err
}