-
Notifications
You must be signed in to change notification settings - Fork 57
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
Upgrade the third-party library version and fix unit test error #13
base: master
Are you sure you want to change the base?
Conversation
src/server.rs
Outdated
.wrap(Cors::new().supports_credentials().finish()) | ||
.wrap(Logger::default()) | ||
.wrap(get_identity_service()) | ||
// .wrap(Cors::new().supports_credentials().finish()) |
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.
Is this comment intentional?
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.
fixed
.configure(routes) | ||
}); | ||
}).workers(2); |
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.
Why 2?
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.
Test use only
use crate::errors::ApiError; | ||
|
||
|
||
pub static SECRET_KEY: Lazy<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.
It might be best to fail if SECRET_KEY is absent.
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.
Repair later
pub static SECRET_KEY: Lazy<String> = | ||
Lazy::new(|| std::env::var("SECRET_KEY").unwrap_or_else(|_| "0123".repeat(16))); | ||
|
||
const _SALT: &[u8] = b"supersecuresalt"; |
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.
For the underscored variable here and the functions below, either remove or add comments as to why they ignored.
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.
Repair later
Thanks for the PR 🙏 Can you also update the README with relevant info (actix version, API updates, ...etc.)? |
No description provided.