fix: raise output max buffer size to Job.MAX_BUFFER_SIZE

This commit is contained in:
jubb 2021-07-05 10:46:48 +10:00
parent d57903aa44
commit f7bec07503

View File

@ -140,7 +140,7 @@ class AttachmentUploadJob(val attachmentID: Long, val threadID: String, val mess
val kryo = Kryo() val kryo = Kryo()
kryo.isRegistrationRequired = false kryo.isRegistrationRequired = false
val serializedMessage = ByteArray(4096) val serializedMessage = ByteArray(4096)
val output = Output(serializedMessage) val output = Output(serializedMessage, Job.MAX_BUFFER_SIZE)
kryo.writeClassAndObject(output, message) kryo.writeClassAndObject(output, message)
output.close() output.close()
return Data.Builder() return Data.Builder()