Convert project to workspace with Tonic for gRPC. #84

Merged
projectmoon merged 9 commits from tonic into master 2021-06-02 21:10:02 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit c28d5a5c21 - Show all commits

View File

@ -49,7 +49,7 @@ fn db_path_from_env() -> String {
}
/// The "bot" section of the config file, for bot settings.
#[derive(Serialize, Deserialize, Clone, Debug)]
#[derive(Serialize, Deserialize, Clone, Debug, Default)]
struct BotConfig {
/// How far back from current time should we process a message?
oldest_message_age: Option<u64>,
@ -189,6 +189,7 @@ mod tests {
}),
bot: Some(BotConfig {
oldest_message_age: None,
..Default::default()
}),
};