1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-30 21:26:33 -05:00

rename NewAckList

This commit is contained in:
v2ray 2016-07-02 23:18:12 +02:00
parent a1af9ea839
commit 6416c42bee
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -155,7 +155,7 @@ type AckList struct {
nextFlush []uint32 nextFlush []uint32
} }
func NewACKList(writer SegmentWriter) *AckList { func NewAckList(writer SegmentWriter) *AckList {
return &AckList{ return &AckList{
writer: writer, writer: writer,
timestamps: make([]uint32, 0, 32), timestamps: make([]uint32, 0, 32),
@ -234,7 +234,7 @@ func NewReceivingWorker(kcp *KCP) *ReceivingWorker {
window: NewReceivingWindow(windowSize), window: NewReceivingWindow(windowSize),
windowSize: windowSize, windowSize: windowSize,
} }
worker.acklist = NewACKList(worker) worker.acklist = NewAckList(worker)
return worker return worker
} }