-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
セッションのセーブ、ロード等実装 #41
セッションのセーブ、ロード等実装 #41
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
気になったので
pub async fn delete_session(&self, session_id: &str) -> anyhow::Result<Option<()>> { | ||
let Some(session) = self | ||
.session_store | ||
.load_session(session_id.to_string()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここだけto_stringになってるの気になる
.load_session(session_id.to_string()) | |
.load_session(session_id.to_owned()) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
全部to_string でもいい?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
全て合わせるんだったらどっちでもいいよ
なおしました |
これ、全ファイルの意だった |
|
util/mail.rs とか repository/jwt.rs とかにもto_ownedがある |
なおした |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
良さそうです
関連Issue
概要
セッションのセーブ、削除、
id
によるロードを実装しました。変更内容
create_session
,delete_session
,get_user_id_by_session_id
補足