Skip to content

Commit fd41c6f

Browse files
authored
Merge pull request #83 from smartcontractkit/chore/fixImport
Chore/fix import
2 parents 20cb9ef + 4c4a48d commit fd41c6f

File tree

7 files changed

+47
-52
lines changed

7 files changed

+47
-52
lines changed

explorer/dht.pb.go

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package explorer
33
// original pb https://github.com/smartcontractkit/libocr/blob/master/networking/dht-router/serialization/cl_dht_addr_announcement.pb.go
44

55
import (
6-
proto "github.com/golang/protobuf/proto"
7-
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
8-
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
96
reflect "reflect"
107
sync "sync"
8+
9+
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
10+
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
1111
)
1212

1313
const (
@@ -17,10 +17,6 @@ const (
1717
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
1818
)
1919

20-
// This is a compile-time assertion that a sufficiently up-to-date version
21-
// of the legacy proto package is being used.
22-
const _ = proto.ProtoPackageIsVersion4
23-
2420
type SignedAnnouncement struct {
2521
state protoimpl.MessageState
2622
sizeCache protoimpl.SizeCache

explorer/explorer.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ package explorer
22

33
import (
44
"encoding/json"
5-
"github.com/golang/protobuf/proto"
6-
"github.com/gorilla/websocket"
7-
"github.com/rs/zerolog/log"
85
"net/http"
96
"sync"
7+
8+
"github.com/gorilla/websocket"
9+
"github.com/rs/zerolog/log"
10+
"google.golang.org/protobuf/proto"
1011
)
1112

1213
const (
@@ -141,7 +142,7 @@ func (e *Explorer) tryUnmarshalDHT(bs []byte, foundFlag *bool) {
141142
switch {
142143
case msg.GetAddrs() != nil:
143144
*foundFlag = true
144-
log.Debug().Interface("DHT Announce", msg).Send()
145+
log.Debug().Interface("DHT Announce", msg.ProtoReflect()).Send()
145146
e.Messages.DHTAnnounce = append(e.Messages.DHTAnnounce, &msg)
146147
}
147148
}

explorer/go.mod

Lines changed: 0 additions & 12 deletions
This file was deleted.

explorer/messages.pb.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
reflect "reflect"
77
sync "sync"
88

9-
proto "github.com/golang/protobuf/proto"
109
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
1110
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
1211
)
@@ -18,10 +17,6 @@ const (
1817
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
1918
)
2019

21-
// This is a compile-time assertion that a sufficiently up-to-date version
22-
// of the legacy proto package is being used.
23-
const _ = proto.ProtoPackageIsVersion4
24-
2520
type MessageNewEpoch struct {
2621
state protoimpl.MessageState
2722
sizeCache protoimpl.SizeCache

explorer/telemetry.pb.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
reflect "reflect"
77
sync "sync"
88

9-
proto "github.com/golang/protobuf/proto"
109
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
1110
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
1211
)
@@ -18,10 +17,6 @@ const (
1817
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
1918
)
2019

21-
// This is a compile-time assertion that a sufficiently up-to-date version
22-
// of the legacy proto package is being used.
23-
const _ = proto.ProtoPackageIsVersion4
24-
2520
type TelemetryWrapper struct {
2621
state protoimpl.MessageState
2722
sizeCache protoimpl.SizeCache

go.mod

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,26 @@ go 1.16
44

55
require (
66
github.com/avast/retry-go v3.0.0+incompatible
7-
github.com/ethereum/go-ethereum v1.10.4
7+
github.com/ethereum/go-ethereum v1.10.8
88
github.com/ghodss/yaml v1.0.0
99
github.com/google/go-cmp v0.5.6 // indirect
1010
github.com/google/go-github v17.0.0+incompatible
11+
github.com/gorilla/websocket v1.4.2
1112
github.com/hashicorp/go-multierror v1.1.1
1213
github.com/montanaflynn/stats v0.6.6
1314
github.com/onsi/ginkgo v1.16.4
14-
github.com/onsi/gomega v1.13.0
15+
github.com/onsi/gomega v1.16.0
1516
github.com/pkg/errors v0.9.1
1617
github.com/prometheus/client_golang v1.8.0
1718
github.com/prometheus/common v0.14.0
1819
github.com/rs/zerolog v1.21.0
1920
github.com/satori/go.uuid v1.2.0
20-
github.com/smartcontractkit/integrations-framework/explorer v0.0.0
2121
github.com/smartcontractkit/libocr v0.0.0-20210803133922-ddddd3dce7e5
2222
github.com/spf13/cobra v1.1.1
2323
github.com/spf13/viper v1.8.0
2424
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
25+
google.golang.org/protobuf v1.26.0
2526
k8s.io/api v0.22.0
2627
k8s.io/apimachinery v0.22.0
2728
k8s.io/client-go v0.22.0
2829
)
29-
30-
replace github.com/smartcontractkit/integrations-framework/explorer => ./explorer/

0 commit comments

Comments
 (0)