Skip to content

Commit

Permalink
use rlp_01 version 3.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kortemik committed Jan 3, 2023
1 parent fe76b4a commit 68ef757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<dependency>
<groupId>com.teragrep</groupId>
<artifactId>rlp_01</artifactId>
<version>2.2.0</version>
<version>3.0.1</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/teragrep/jla_06/RelpAppender.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import java.util.UUID;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Supplier;

@Plugin(name="RelpAppender", category=Core.CATEGORY_NAME, elementType=Appender.ELEMENT_TYPE, printObject=true)
public class RelpAppender extends AbstractAppender {
Expand Down Expand Up @@ -153,7 +154,8 @@ protected RelpAppender(String name, Filter filter, Layout<? extends Serializable
}
else {
SSLEngine sslEngine = sslContext.createSSLEngine();
this.relpConnection = new RelpConnection(sslEngine);
Supplier<SSLEngine> sslEngineSupplier = sslContext::createSSLEngine;
this.relpConnection = new RelpConnection(sslEngineSupplier);
}
connect();
}
Expand Down

0 comments on commit 68ef757

Please sign in to comment.