Skip to content

Commit

Permalink
fix: 修复测试用例
Browse files Browse the repository at this point in the history
  • Loading branch information
yukdawn committed Apr 7, 2022
1 parent 7f8e34d commit 2bde477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ private synchronized OkHttpClient getOkHttpClient(Class<?> retrofitClientInterfa
}

// add DegradeInterceptor
// TODO 这里稍微有点问题,开启熔断则所有实例都会加熔断拦截器,但是拦截器升不生效则取决于是否配置了@Degrade注解,可不可以把这里做成有一个全局默认配置,有@Degrade则走单独配置?
DegradeProperty degradeProperty = retrofitProperties.getDegrade();
if (degradeProperty.isEnable()) {
DegradeType degradeType = degradeProperty.getDegradeType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public interface HttpApi4 {
* @param id .
* @return .
*/
@GET("person")
@GET("/degrade/person")
Result<Person> getPerson(@Query("id") Long id);

@Service
Expand Down

0 comments on commit 2bde477

Please sign in to comment.