consume_pre_key

Function consume_pre_key 

Source
pub async fn consume_pre_key<S: SignalStorageContainer>(
    storage: &mut S,
    pre_key_id: PreKeyId,
) -> Result<(), Box<dyn Error>>
Expand description

Consumes a pre-key and triggers replenishment if count falls below threshold

ยงArguments

  • storage - Signal Protocol storage container
  • pre_key_id - ID of the pre-key to consume