compact method

  1. @override
Stream<int> compact(
  1. bool dryRun
)
override

Compact this keystore by delegating to the internal commit log's HiveAtCommitLog.compact. The keystore itself doesn't have its own compaction algorithm — the commit log is the thing that accumulates entries faster than it can shed them.

A commit-log-free (client-side) keystore has nothing to compact: the call is a no-op that yields nothing.

Implementation

@override
Stream<int> compact(bool dryRun) {
  return _commitLog?.compact(dryRun) ?? Stream<int>.empty();
}