-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom conn factory and support maxInboundMessageBodySizeBytes #991
Conversation
@@ -125,7 +125,7 @@ object ConnectionResource { | |||
): F[Connection[Resource[F, *]]] = | |||
Sync[F] | |||
.delay { | |||
val factory = new ConnectionFactory() | |||
val factory = conf.connectionFactory.getOrElse(new ConnectionFactory()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather have one make function with a connection factory and another with configs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It isn't that easy unfortunately - I'll try again asap
clientProvidedConnectionName: Option[String] | ||
clientProvidedConnectionName: Option[String], | ||
maxInboundMessageBodySizeBytes: Int, | ||
connectionFactory: Option[ConnectionFactory] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there will be two make functions, it's not needed to mix config values with a java connection factory
Address #990