revert reader state

This commit is contained in:
YouROK
2021-05-27 12:33:29 +03:00
parent 5c5a202e7a
commit 6fb9b56b63
5 changed files with 9 additions and 22 deletions

View File

@@ -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
}