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:
parent
a1af9ea839
commit
6416c42bee
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user