summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/api/SUMMARY.md6
-rw-r--r--src/broadcast.rs4
-rw-r--r--src/token/repo/token.rs4
3 files changed, 5 insertions, 9 deletions
diff --git a/docs/api/SUMMARY.md b/docs/api/SUMMARY.md
index f921a1f..99b6352 100644
--- a/docs/api/SUMMARY.md
+++ b/docs/api/SUMMARY.md
@@ -1,8 +1,8 @@
# Summary
-- [Basics](./basics.md)
-- [Authentication](./authentication.md)
-- [Initial Setup](initial-setup.md)
+- [Basics](basics.md)
+- [Authentication](authentication.md)
+- [Initial setup](initial-setup.md)
- [Client initialization](boot.md)
- [Events](events.md)
- [Invitations](invitations.md)
diff --git a/src/broadcast.rs b/src/broadcast.rs
index 41a5e23..6e1f04d 100644
--- a/src/broadcast.rs
+++ b/src/broadcast.rs
@@ -30,8 +30,6 @@ impl<M> Broadcaster<M>
where
M: Clone + Send + std::fmt::Debug + 'static,
{
- // panic: if ``message.channel.id`` has not been previously registered,
- // and was not part of the initial set of channels.
pub fn broadcast(&self, message: impl Into<M>) {
let tx = self.sender();
@@ -45,8 +43,6 @@ where
let _ = tx.send(message.into());
}
- // panic: if ``channel`` has not been previously registered, and was not
- // part of the initial set of channels.
pub fn subscribe(&self) -> impl Stream<Item = M> + std::fmt::Debug + use<M> {
let rx = self.sender().subscribe();
diff --git a/src/token/repo/token.rs b/src/token/repo/token.rs
index e49c2d4..cbc50ab 100644
--- a/src/token/repo/token.rs
+++ b/src/token/repo/token.rs
@@ -23,8 +23,8 @@ impl Provider for Transaction<'_, Sqlite> {
pub struct Tokens<'t>(&'t mut SqliteConnection);
impl Tokens<'_> {
- // Issue a new token for an existing login. The issued_at timestamp will
- // be used to control expiry, until the token is actually used.
+ // Issue a new token for an existing user. The issued_at timestamp will
+ // determine the token's initial expiry deadline.
pub async fn issue(
&mut self,
user: &History,