Simplify error checking in writeWithPendingDetection() 80/102980/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Oct 2022 21:33:28 +0000 (23:33 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 31 Oct 2022 08:13:34 +0000 (09:13 +0100)
commit78adfb194a365e7a974644d149d3020e00138c1b
tree638549dc1585c1e3c1302425875be0f51fb54e59
parent8c90b1ecb9eb01a28521bcb4b007f60ac6982dcb
Simplify error checking in writeWithPendingDetection()

We are only interested in seeing the failure, as we are guarateed to see
a completed future.

JIRA: NETCONF-905
Change-Id: I3fa0236592ff785be49e0cb69a20d7c08b9432e9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 7f08b1035520fcc0f60ab6c6ab6536366510a45f)
(cherry picked from commit 4062aa60862fc4bb81edc563fa0b6bc3cc41d3f3)
netconf/netconf-netty-util/src/main/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerWriter.java
netconf/netconf-netty-util/src/test/java/org/opendaylight/netconf/nettyutil/handler/ssh/client/AsyncSshHandlerTest.java