@@ -54,11 +54,13 @@ foreign import data Producer :: Type
54type ProducerConfig
54type ProducerConfig
55 = { idempotent :: Maybe Boolean
55 = { idempotent :: Maybe Boolean
56 , transactionalId :: Maybe String
56 , transactionalId :: Maybe String
57+ , maxInFlightRequests :: Maybe Int
59type InternalProducerConfig
60type InternalProducerConfig
60 = { idempotent :: Nullable Boolean
61 = { idempotent :: Nullable Boolean
61 , transactionalId :: Nullable String
62 , transactionalId :: Nullable String
63+ , maxInFlightRequests :: Nullable Int
64foreign import makeClientImpl :: InternalKafkaConfig -> Kafka
66foreign import makeClientImpl :: InternalKafkaConfig -> Kafka
@@ -81,6 +83,7 @@ makeProducer k pc = runFn2 makeProducerImpl k ipc
82 { idempotent: toNullable pc.idempotent
84 { idempotent: toNullable pc.idempotent
83 , transactionalId: toNullable pc.transactionalId
85 , transactionalId: toNullable pc.transactionalId
86+ , maxInFlightRequests : toNullable pc.maxInFlightRequests
86foreign import connectImpl :: Producer -> Effect (Promise Unit)
89foreign import connectImpl :: Producer -> Effect (Promise Unit)