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:
parent
39f17121d5
commit
647f2f41ae
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue