Skip to content

Commit 4bad837

Browse files
authored
Merge pull request #100 from XinFinOrg/upgrade-websocket-imports
change to self common
2 parents f28fbf7 + d3ff8c2 commit 4bad837

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

rpc/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"sync/atomic"
2929
"time"
3030

31-
"github.com/ethereum/go-ethereum/log"
31+
"github.com/XinFinOrg/XDC-Subnet/log"
3232
)
3333

3434
var (

rpc/client_example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"fmt"
2222
"time"
2323

24-
"github.com/ethereum/go-ethereum/common/hexutil"
25-
"github.com/ethereum/go-ethereum/rpc"
24+
"github.com/XinFinOrg/XDC-Subnet/common/hexutil"
25+
"github.com/XinFinOrg/XDC-Subnet/rpc"
2626
)
2727

2828
// In this example, our client wishes to track the latest 'block number'

rpc/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131
"testing"
3232
"time"
3333

34+
"github.com/XinFinOrg/XDC-Subnet/log"
3435
"github.com/davecgh/go-spew/spew"
35-
"github.com/ethereum/go-ethereum/log"
3636
)
3737

3838
func TestClientRequest(t *testing.T) {

rpc/endpoints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"net"
2121
"strings"
2222

23-
"github.com/ethereum/go-ethereum/log"
23+
"github.com/XinFinOrg/XDC-Subnet/log"
2424
)
2525

2626
// StartIPCEndpoint starts an IPC endpoint.

rpc/handler.go

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"sync"
2626
"time"
2727

28-
"github.com/ethereum/go-ethereum/log"
28+
"github.com/XinFinOrg/XDC-Subnet/log"
2929
)
3030

3131
// handler handles JSON-RPC messages. There is one handler per connection. Note that
@@ -34,21 +34,20 @@ import (
3434
//
3535
// The entry points for incoming messages are:
3636
//
37-
// h.handleMsg(message)
38-
// h.handleBatch(message)
37+
// h.handleMsg(message)
38+
// h.handleBatch(message)
3939
//
4040
// Outgoing calls use the requestOp struct. Register the request before sending it
4141
// on the connection:
4242
//
43-
// op := &requestOp{ids: ...}
44-
// h.addRequestOp(op)
43+
// op := &requestOp{ids: ...}
44+
// h.addRequestOp(op)
4545
//
4646
// Now send the request, then wait for the reply to be delivered through handleMsg:
4747
//
48-
// if err := op.wait(...); err != nil {
49-
// h.removeRequestOp(op) // timeout, etc.
50-
// }
51-
//
48+
// if err := op.wait(...); err != nil {
49+
// h.removeRequestOp(op) // timeout, etc.
50+
// }
5251
type handler struct {
5352
reg *serviceRegistry
5453
unsubscribeCb *callback

rpc/ipc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"context"
2121
"net"
2222

23-
"github.com/ethereum/go-ethereum/log"
23+
"github.com/XinFinOrg/XDC-Subnet/log"
2424
"github.com/ethereum/go-ethereum/p2p/netutil"
2525
)
2626

rpc/ipc_unix.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
// You should have received a copy of the GNU Lesser General Public License
1515
// along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
1616

17+
//go:build darwin || dragonfly || freebsd || linux || nacl || netbsd || openbsd || solaris
1718
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
1819

1920
package rpc
@@ -25,7 +26,7 @@ import (
2526
"os"
2627
"path/filepath"
2728

28-
"github.com/ethereum/go-ethereum/log"
29+
"github.com/XinFinOrg/XDC-Subnet/log"
2930
)
3031

3132
// ipcListen will create a Unix socket on the given endpoint.

rpc/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"io"
2222
"sync/atomic"
2323

24+
"github.com/XinFinOrg/XDC-Subnet/log"
2425
mapset "github.com/deckarep/golang-set"
25-
"github.com/ethereum/go-ethereum/log"
2626
)
2727

2828
const MetadataApi = "rpc"

rpc/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"sync"
2727
"unicode"
2828

29-
"github.com/ethereum/go-ethereum/log"
29+
"github.com/XinFinOrg/XDC-Subnet/log"
3030
)
3131

3232
var (

rpc/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import (
2323
"math"
2424
"strings"
2525

26-
"github.com/ethereum/go-ethereum/common"
27-
"github.com/ethereum/go-ethereum/common/hexutil"
26+
"github.com/XinFinOrg/XDC-Subnet/common"
27+
"github.com/XinFinOrg/XDC-Subnet/common/hexutil"
2828
)
2929

3030
// API describes the set of methods offered over the RPC interface

0 commit comments

Comments
 (0)