Skip to content

Commit

Permalink
Put missing apply method back
Browse files Browse the repository at this point in the history
  • Loading branch information
bplommer committed Mar 20, 2022
1 parent 097ac04 commit a7261d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/core/src/main/scala/fs2/kafka/ProducerSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ object ProducerSettings {
valueSerializer = valueSerializer.forValue
)

def apply[F[_], K, V](
implicit keySerializer: RecordSerializer[F, K],
valueSerializer: RecordSerializer[F, V]
): ProducerSettings[F, K, V] =
create(keySerializer = keySerializer.forKey, valueSerializer = valueSerializer.forValue)

/**
* Create a `ProducerSettings` instance using placeholder serializers that serialize nothing.
* These can be subsequently replaced using `withSerializers`, allowing configuration of
Expand Down

0 comments on commit a7261d3

Please sign in to comment.