mirror of
https://github.com/tgdrive/teldrive.git
synced 2024-12-31 04:13:01 +08:00
fix: encrypted reader
This commit is contained in:
parent
8d7245cd5b
commit
e31147aa72
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ MODULE_PATH := $(shell go list -m)
|
|||
GOOS ?= $(shell go env GOOS)
|
||||
GOARCH ?= $(shell go env GOARCH)
|
||||
|
||||
.PHONY: all build run clean frontend backend run sync-ui tag-and-push retag dev-tag dev-retag
|
||||
.PHONY: all build run clean frontend backend run sync-ui retag patch-version minor-version
|
||||
|
||||
all: build
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@ func (r *decrpytedReader) Read(p []byte) (n int, err error) {
|
|||
err = nil
|
||||
}
|
||||
r.pos++
|
||||
if r.pos < len(r.parts) {
|
||||
if r.pos < len(r.ranges) {
|
||||
r.reader, err = r.nextPart()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue