Skip to content

Commit

Permalink
fix The first letter of the path is \, causing the problem of splitti…
Browse files Browse the repository at this point in the history
…ng redundant '\' (#5)

Co-authored-by: dengzq3 <[email protected]>
  • Loading branch information
dengzhq and dengzq3 authored Sep 21, 2022
1 parent df708d9 commit 9667da4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conf/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl PerformRequest for CachedFetchRequest {

fn path(&self) -> String {
format!(
"/configfiles/{app_id}/{cluster_name}/{namespace_name}",
"configfiles/{app_id}/{cluster_name}/{namespace_name}",
app_id = self.app_id,
cluster_name = self.cluster_name,
namespace_name = self.namespace_name
Expand Down Expand Up @@ -134,7 +134,7 @@ impl PerformRequest for FetchRequest {

fn path(&self) -> String {
format!(
"/configs/{app_id}/{cluster_name}/{namespace_name}",
"configs/{app_id}/{cluster_name}/{namespace_name}",
app_id = self.app_id,
cluster_name = self.cluster_name,
namespace_name = self.namespace_name
Expand Down Expand Up @@ -217,7 +217,7 @@ impl PerformRequest for NotifyRequest {
type Response = Vec<Notification>;

fn path(&self) -> String {
"/notifications/v2".to_string()
"notifications/v2".to_string()
}

fn queries(&self) -> ApolloClientResult<Vec<(Cow<'_, str>, Cow<'_, str>)>> {
Expand Down

2 comments on commit 9667da4

@hyangjudy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动可以发版吗? cargo 现在 pull 不到

@jmjoy
Copy link
Owner

@jmjoy jmjoy commented on 9667da4 Jun 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个改动可以发版吗? cargo 现在 pull 不到

可以

Please sign in to comment.