refactor: fix typo in decrypted reader

This commit is contained in:
divyam234 2024-07-02 00:53:54 +05:30
parent 1353ae7bd2
commit 713d7a8fe7
2 changed files with 2 additions and 11 deletions

View file

@ -19,15 +19,6 @@ jobs:
with:
go-version: stable
- name: Go module cache
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go
restore-keys: |
${{ runner.os }}-go
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
@ -42,7 +33,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -114,7 +114,7 @@ func (r *decrpytedReader) nextPart() (io.ReadCloser, error) {
client: r.client, concurrency: r.concurrency}
if r.concurrency < 2 {
return newTGReader(r.ctx, start, end, chunkSrc)
return newTGReader(r.ctx, underlyingOffset, end, chunkSrc)
}
return newTGMultiReader(r.ctx, underlyingOffset, end, r.config, chunkSrc)