Skip to content

Commit

Permalink
Forgot this
Browse files Browse the repository at this point in the history
  • Loading branch information
AffectedArc07 committed Jan 2, 2022
1 parent 56a9c45 commit 2a9bf99
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions paradise-rust-g-patches/0006-Paradise-Fixes-1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
From 0a8cfc9199fc6c8e62a0a9c04b53c51c514c022f Mon Sep 17 00:00:00 2001
From: AffectedArc07 <[email protected]>
Date: Sun, 2 Jan 2022 23:06:29 +0000
Subject: [PATCH] Paradise Fixes 1


diff --git a/dmsrc/redis_pubsub.dm b/dmsrc/redis-pubsub.dm
similarity index 100%
rename from dmsrc/redis_pubsub.dm
rename to dmsrc/redis-pubsub.dm
diff --git a/src/http.rs b/src/http.rs
index b02b580..eecec99 100644
--- a/src/http.rs
+++ b/src/http.rs
@@ -179,16 +179,16 @@ fn submit_request(prep: RequestPrep) -> Result<String> {
Ok(serde_json::to_string(&resp)?)
}

-byond_fn! { start_http_client() {
+byond_fn!(fn start_http_client() {
HTTP_CLIENT.with(|cell| {
cell.replace(Some(setup_http_client()))
});
Some("")
-} }
+});

-byond_fn! { shutdown_http_client() {
+byond_fn!(fn shutdown_http_client() {
HTTP_CLIENT.with(|cell| {
cell.replace(None)
});
Some("")
-} }
+});
--
2.33.0.windows.2

0 comments on commit 2a9bf99

Please sign in to comment.