Skip to content

Commit

Permalink
fixed bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
SpringHerald committed Aug 31, 2020
1 parent f5186ec commit 52fa053
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -22,7 +22,6 @@ public class GenerateCommentAction extends AnAction {

@Override
public void actionPerformed(AnActionEvent e) {
// TODO: insert action logic here
Editor editor = e.getData(PlatformDataKeys.EDITOR);
if (editor == null) return;
Project project = e.getProject();
Expand Down Expand Up @@ -77,8 +76,6 @@ public void run(@NotNull ProgressIndicator indicator) {
String serverAddr = props.getProperty("server-address");

result = HttpClientPool.getHttpClient().post("http://" + serverAddr + ":5000/s", selectedText);
// result = HttpClientPool.getHttpClient().post("http://127.0.0.1:5000/s", s);

} catch (Exception ex) {
ex.printStackTrace();
Messages.showMessageDialog("Failed to connect to server.", "Information", Messages.getInformationIcon());
Expand Down

0 comments on commit 52fa053

Please sign in to comment.