1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Fix context import

This commit is contained in:
Maksym Pavlenko
2021-12-31 21:24:58 +02:00
parent f337f6c8b1
commit 26f4b2a47a
3 changed files with 3 additions and 4 deletions

1
go.mod
View File

@@ -17,7 +17,6 @@ require (
github.com/sirupsen/logrus v1.8.1
github.com/stretchr/testify v1.7.0
github.com/zackradisic/soundcloud-api v0.1.5
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4
golang.org/x/oauth2 v0.0.0-20180620175406-ef147856a6dd
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
google.golang.org/api v0.0.0-20180718221112-efcb5f25ac56

View File

@@ -1,12 +1,12 @@
package builder
import (
"context"
"strconv"
"time"
"github.com/pkg/errors"
soundcloudapi "github.com/zackradisic/soundcloud-api"
"golang.org/x/net/context"
"github.com/mxpv/podsync/pkg/config"
"github.com/mxpv/podsync/pkg/model"
@@ -16,7 +16,7 @@ type SoundCloudBuilder struct {
client *soundcloudapi.API
}
func (s *SoundCloudBuilder) Build(ctx context.Context, cfg *config.Feed) (*model.Feed, error) {
func (s *SoundCloudBuilder) Build(_ctx context.Context, cfg *config.Feed) (*model.Feed, error) {
info, err := ParseURL(cfg.URL)
if err != nil {
return nil, err

View File

@@ -1,13 +1,13 @@
package builder
import (
"context"
"net/http"
"strconv"
"time"
"github.com/pkg/errors"
"github.com/silentsokolov/go-vimeo/vimeo"
"golang.org/x/net/context"
"golang.org/x/oauth2"
"github.com/mxpv/podsync/pkg/config"