Skip to main content

sweep

Function sweep 

Source
pub async fn sweep(
    database: &dyn NostrDatabase,
    account: PublicKey,
    bookmarked: &HashSet<EventId>,
    before: Timestamp,
) -> Result<usize, String>
Expand description

Take out of database what was written at before or earlier and doesn’t stay (see stays). Returns how many events that was.