diff --git a/core/authority_discovery/query/audi_store.hpp b/core/authority_discovery/query/audi_store.hpp index 10bcb961ee..83ad76fe23 100644 --- a/core/authority_discovery/query/audi_store.hpp +++ b/core/authority_discovery/query/audi_store.hpp @@ -42,7 +42,8 @@ namespace kagome::authority_discovery { * Remove authority discovery data * @param authority the authority to remove */ - virtual outcome::result remove(const primitives::AuthorityDiscoveryId &authority) = 0; + virtual outcome::result remove( + const primitives::AuthorityDiscoveryId &authority) = 0; /** * Check if the store contains the authority @@ -52,10 +53,16 @@ namespace kagome::authority_discovery { virtual bool contains( const primitives::AuthorityDiscoveryId &authority) const = 0; + /** + * Apply a function to each entry in the store + */ virtual void forEach( std::function f) const = 0; + /** + * Retain only the entries that satisfy the predicate + */ virtual void retainIf( std::function f) = 0;