transparency-dev / trillian-tessera

Go library for building tile-based transparency logs (tlogs)
Apache License 2.0
11 stars 11 forks source link

Add queue mix-in for storage implementations #44

Closed AlCutter closed 4 months ago

AlCutter commented 4 months ago

This PR adds a buffering queue which storage implementations may use to batch up calls to their Add methods.

If multiple identical entries are added to the queue, it will silently de-deduplicate them and return the same assigned index (or error) for each.

Supports https://github.com/transparency-dev/trillian-tessera/issues/6