Skip to content

Commit 6308b42

Browse files
committed
fix deprecated x/net/context
1 parent 67bc484 commit 6308b42

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pkg/pipeline/encode/encode_kafka.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package encode
1919

2020
import (
21+
"context"
2122
"encoding/json"
2223

2324
"github.com/netobserv/flowlogs-pipeline/pkg/api"
@@ -27,7 +28,6 @@ import (
2728
"github.com/prometheus/client_golang/prometheus"
2829
kafkago "github.com/segmentio/kafka-go"
2930
log "github.com/sirupsen/logrus"
30-
"golang.org/x/net/context"
3131
)
3232

3333
type kafkaWriteMessage interface {

pkg/pipeline/encode/encode_kafka_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package encode
1919

2020
import (
21+
"context"
2122
"encoding/json"
2223
"testing"
2324

@@ -28,7 +29,6 @@ import (
2829
kafkago "github.com/segmentio/kafka-go"
2930
"github.com/stretchr/testify/mock"
3031
"github.com/stretchr/testify/require"
31-
"golang.org/x/net/context"
3232
)
3333

3434
const testKafkaConfig = `---

pkg/pipeline/encode/encode_s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package encode
1919

2020
import (
2121
"bytes"
22+
"context"
2223
"encoding/json"
2324
"fmt"
2425
"sync"
@@ -32,7 +33,6 @@ import (
3233
"github.com/netobserv/flowlogs-pipeline/pkg/pipeline/utils"
3334
"github.com/prometheus/client_golang/prometheus"
3435
log "github.com/sirupsen/logrus"
35-
"golang.org/x/net/context"
3636
)
3737

3838
const (

pkg/pipeline/ingest/ingest_kafka.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package ingest
1919

2020
import (
21+
"context"
2122
"time"
2223

2324
"github.com/netobserv/flowlogs-pipeline/pkg/api"
@@ -28,7 +29,6 @@ import (
2829
"github.com/netobserv/flowlogs-pipeline/pkg/pipeline/utils"
2930
kafkago "github.com/segmentio/kafka-go"
3031
"github.com/sirupsen/logrus"
31-
"golang.org/x/net/context"
3232
)
3333

3434
var klog = logrus.WithField("component", "ingest.Kafka")

0 commit comments

Comments
 (0)