This repository has been archived by the owner on May 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: remove unused methods in replica session (#143)
- Loading branch information
Wu Tao
authored
Dec 8, 2020
1 parent
d17b81a
commit d427496
Showing
2 changed files
with
3 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,6 @@ | |
import org.apache.thrift.protocol.TBinaryProtocol; | ||
import org.slf4j.Logger; | ||
|
||
/** Created by [email protected] on 16-11-9. */ | ||
public class ThriftFrameEncoder extends MessageToByteEncoder<ReplicaSession.RequestEntry> { | ||
private static final Logger logger = org.slf4j.LoggerFactory.getLogger(ThriftFrameEncoder.class); | ||
|
||
|
@@ -60,12 +59,4 @@ protected void encode(ChannelHandlerContext ctx, ReplicaSession.RequestEntry e, | |
e.op.prepare_thrift_header( | ||
meta_length, out.readableBytes() - ThriftHeader.HEADER_LENGTH - meta_length)); | ||
} | ||
|
||
@Override | ||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { | ||
logger.warn( | ||
"got exception in outbound handler of {}, just ignore this: ", | ||
ctx.channel().toString(), | ||
cause); | ||
} | ||
} |