(l Limiter)
| 708 | } |
| 709 | |
| 710 | func (u *Unpacker) release(l Limiter) { |
| 711 | if l == nil { |
| 712 | return |
| 713 | } |
| 714 | l.Release(1) |
| 715 | } |
| 716 | |
| 717 | func (u *Unpacker) lockSnChainID(ctx context.Context, chainID, snapshotter string) (func(), error) { |
| 718 | key := u.makeChainIDKeyWithSnapshotter(chainID, snapshotter) |