mirror of
https://github.com/jwetzell/psn-go.git
synced 2026-09-02 21:09:12 +00:00
switch to using pointers to trackers
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ func (e *Encoder) ResetInfoFrameId() {
|
|||||||
e.infoFrameId = 1
|
e.infoFrameId = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Encoder) GetInfoPackets(timestamp uint64, trackers []Tracker) [][]byte {
|
func (e *Encoder) GetInfoPackets(timestamp uint64, trackers []*Tracker) [][]byte {
|
||||||
systemNameChunk := encoders.EncodeInfoSystemNameChunk(e.SystemName)
|
systemNameChunk := encoders.EncodeInfoSystemNameChunk(e.SystemName)
|
||||||
|
|
||||||
trackerChunks := [][]byte{}
|
trackerChunks := [][]byte{}
|
||||||
@@ -58,7 +58,7 @@ func (e *Encoder) GetInfoPackets(timestamp uint64, trackers []Tracker) [][]byte
|
|||||||
return infoPackets
|
return infoPackets
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Encoder) GetDataPackets(timestamp uint64, trackers []Tracker) [][]byte {
|
func (e *Encoder) GetDataPackets(timestamp uint64, trackers []*Tracker) [][]byte {
|
||||||
trackerChunks := [][]byte{}
|
trackerChunks := [][]byte{}
|
||||||
|
|
||||||
for _, tracker := range trackers {
|
for _, tracker := range trackers {
|
||||||
|
|||||||
Reference in New Issue
Block a user