Skip to content
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

Fixes #25 #26

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ jobs:
rustup default nightly

- name: Run Tests
env:
RUST_TEST_TIME_UNIT: 60000,120000
RUST_TEST_TIME_INTEGRATION: 60000,120000
RUST_TEST_TIME_DOCTEST: 60000,120000
run: |
cargo test --workspace --all-targets --all-features
cargo test --workspace --all-targets --all-features -- --ensure-time --report-time -Z unstable-options

check_format:
name: check (format)
Expand Down Expand Up @@ -111,5 +115,5 @@ jobs:

- name: Check lint
env:
RUSTDOCFLAGS: -D warnings
RUSTDOCFLAGS: -D warnings
run: cargo doc --workspace --all-features
8 changes: 7 additions & 1 deletion memphis/src/memphis_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,13 @@ impl MemphisClient {
}
}

pub async fn send_notification(&self, notification_type: MemphisNotificationType, title: &str, message: &str, code: &str) -> Result<(), RequestError> {
pub(crate) async fn send_notification(
&self,
notification_type: MemphisNotificationType,
title: &str,
message: &str,
code: &str,
) -> Result<(), RequestError> {
let req = NotificationRequest {
title,
msg: message,
Expand Down