From 93ad507e4eaecb55b12797e1fdc81952b5d447f8 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sat, 12 Jun 2021 23:07:25 -0700 Subject: [PATCH] * Exposing rtc::notify to avoid single use functions This also avoid sthe issue of rustc not inling these functions leaving us with more jump than we need --- json-api/src/rtc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-api/src/rtc.rs b/json-api/src/rtc.rs index 22f303a..fbd59c3 100644 --- a/json-api/src/rtc.rs +++ b/json-api/src/rtc.rs @@ -64,7 +64,7 @@ fn make_url() -> Url { url } -async fn notify

(event_name: &str, payload: P) +pub async fn notify

(event_name: &str, payload: P) -> Result<(), Error> where P: Serialize {