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

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"