Skip to content

Commit

Permalink
Update ProtobufCodecProvider.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Jun 7, 2024
1 parent 2fa7cc0 commit 08b19bd
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import tr.com.infumia.pubsub.codec.CodecProvider

@OptIn(ExperimentalSerializationApi::class)
class ProtobufCodecProvider : CodecProvider {

override fun <T : Any> provide(type: Class<T>): Codec<T> =
ProtobufCodec(ProtoBuf.serializersModule.serializer(type.kotlin.createType()) as KSerializer<T>)
}

0 comments on commit 08b19bd

Please sign in to comment.