Skip to content

Commit 81204cb

Browse files
authored
fix: rename sendChunk in sendBuffer (#141)
1 parent 09ecab2 commit 81204cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/producer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class StreamProducer implements Producer {
121121
}
122122

123123
async flush() {
124-
await this.sendChunk()
124+
await this.sendBuffer()
125125
return true
126126
}
127127

@@ -181,7 +181,7 @@ export class StreamProducer implements Producer {
181181
const sendCycleNeeded = this.add(publishRequestMessage)
182182
let sent = false
183183
if (sendCycleNeeded) {
184-
await this.sendChunk()
184+
await this.sendBuffer()
185185
sent = true
186186
}
187187
this.scheduleIfNeeded()
@@ -198,7 +198,7 @@ export class StreamProducer implements Producer {
198198
return true
199199
}
200200

201-
private async sendChunk() {
201+
private async sendBuffer() {
202202
const chunk = this.popChunk()
203203
if (chunk.length > 0) {
204204
await this.client.send(

0 commit comments

Comments
 (0)