mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
revert reader state
This commit is contained in:
@@ -2,7 +2,6 @@ package state
|
||||
|
||||
import (
|
||||
"server/torr/state"
|
||||
"server/torr/storage/reader"
|
||||
)
|
||||
|
||||
type CacheState struct {
|
||||
@@ -13,7 +12,7 @@ type CacheState struct {
|
||||
PiecesCount int
|
||||
Torrent *state.TorrentStatus
|
||||
Pieces map[int]ItemState
|
||||
Readers []*reader.ReaderState
|
||||
Readers []*ReaderState
|
||||
}
|
||||
|
||||
type ItemState struct {
|
||||
@@ -22,3 +21,9 @@ type ItemState struct {
|
||||
Size int64
|
||||
Completed bool
|
||||
}
|
||||
|
||||
type ReaderState struct {
|
||||
Start int
|
||||
End int
|
||||
Reader int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user