summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/broadcast.rs4
-rw-r--r--src/token/repo/token.rs4
2 files changed, 2 insertions, 6 deletions
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,