Skip to content

Commit

Permalink
feat: Remove alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
BigXin0109 committed Sep 1, 2022
1 parent e89245a commit 14b206e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
public class TraceUtils {
private static Logger logger = LoggerFactory.getLogger(TraceUtils.class);

public static Span prepareClientSpan(Map map, String spanName,
public static Span prepareClientSpan(Map<String, Object> map, String spanName,
boolean isSpanFinishInOtherThread) {
Span span = null;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ public interface AuthService {

void shutdown() throws AuthException;

Map getAuthParams() throws AuthException;
Map<String, String> getAuthParams() throws AuthException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public void shutdown() throws AuthException {
}

@Override
public Map getAuthParams() throws AuthException {
public Map<String, String> getAuthParams() throws AuthException {
if (authConfigs == null) {
init();
}

String token = Base64.getEncoder().encodeToString((authConfigs.username + authConfigs.password)
.getBytes(StandardCharsets.UTF_8));

Map authParams = new HashMap();
Map<String, String> authParams = new HashMap<>(2);
authParams.put("Authorization", "Basic " + token);
return authParams;
}
Expand Down

0 comments on commit 14b206e

Please sign in to comment.