From 713d7a8fe77103fa93ad4ad856104a74fc6dad38 Mon Sep 17 00:00:00 2001 From: divyam234 <47589864+divyam234@users.noreply.github.com> Date: Tue, 2 Jul 2024 00:53:54 +0530 Subject: [PATCH] refactor: fix typo in decrypted reader --- .github/workflows/release.yml | 11 +---------- internal/reader/decrypted_reader.go | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 063aba7..95921db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,16 +18,7 @@ jobs: uses: actions/setup-go@v5 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 }} \ No newline at end of file diff --git a/internal/reader/decrypted_reader.go b/internal/reader/decrypted_reader.go index e9fd691..1b43231 100644 --- a/internal/reader/decrypted_reader.go +++ b/internal/reader/decrypted_reader.go @@ -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)