Skip to content

Commit

Permalink
0.1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
chenby committed Jan 12, 2019
1 parent 316510b commit 9236b90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ public void retry(Event event, int times) {
} catch (Throwable e) {
times--;
if (times >= 0 && flush) {
endpoint.get().flushQuietly();
endpoint.set(Endpoint.valueOf(endpoint.get()));
retry(event, times);
}
Expand Down
14 changes: 2 additions & 12 deletions src/main/java/com/moilioncircle/redis/rdb/cli/net/Endpoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,6 @@ public void flush() {
}
}

public void flushQuietly() {
try {
flush();
} catch (Throwable e) {
}
}

@Override
public void close() throws IOException {
Sockets.closeQuietly(in);
Expand Down Expand Up @@ -332,11 +325,8 @@ public RedisObject(Type type, Object object) {
}

public String getString() {
if (type.isString() || type.isError()) {
byte[] bytes = (byte[]) object;
return new String(bytes);
}
return null;
byte[] b = getBytes();
return b == null ? null : new String(b);
}

public byte[] getBytes() {
Expand Down

0 comments on commit 9236b90

Please sign in to comment.