From 13ae592738f3f155378e7d867ff14c7b175f7781 Mon Sep 17 00:00:00 2001 From: coffeepots Date: Wed, 11 Jul 2018 10:40:20 +0100 Subject: [PATCH] Rename sockets.nim to socket.nim and rpcsockets.nim to rpcsocket.nim --- json_rpc/transports/{sockets.nim => socket.nim} | 0 rpcsocket.nim | 2 ++ rpcsockets.nim | 2 -- tests/testerrors.nim | 2 +- tests/testethcalls.nim | 2 +- tests/testrpcmacro.nim | 2 +- tests/testserverclient.nim | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename json_rpc/transports/{sockets.nim => socket.nim} (100%) create mode 100644 rpcsocket.nim delete mode 100644 rpcsockets.nim diff --git a/json_rpc/transports/sockets.nim b/json_rpc/transports/socket.nim similarity index 100% rename from json_rpc/transports/sockets.nim rename to json_rpc/transports/socket.nim diff --git a/rpcsocket.nim b/rpcsocket.nim new file mode 100644 index 0000000..7568e4d --- /dev/null +++ b/rpcsocket.nim @@ -0,0 +1,2 @@ +import json_rpc / server, json_rpc / transports / socket +export server, socket diff --git a/rpcsockets.nim b/rpcsockets.nim deleted file mode 100644 index 96121c4..0000000 --- a/rpcsockets.nim +++ /dev/null @@ -1,2 +0,0 @@ -import json_rpc / server, json_rpc / transports / sockets -export server, sockets diff --git a/tests/testerrors.nim b/tests/testerrors.nim index afef86c..63a3709 100644 --- a/tests/testerrors.nim +++ b/tests/testerrors.nim @@ -3,7 +3,7 @@ allow unchecked and unformatted calls. ]# -import unittest, debugclient, ../rpcsockets +import unittest, debugclient, ../rpcsocket import strformat, chronicles var server = newRpcSocketServer("localhost", 8547.Port) diff --git a/tests/testethcalls.nim b/tests/testethcalls.nim index 14f59f1..572c808 100644 --- a/tests/testethcalls.nim +++ b/tests/testethcalls.nim @@ -1,5 +1,5 @@ import unittest, json, tables -import ../rpcclient, ../rpcsockets +import ../rpcclient, ../rpcsocket import stint, ethtypes, ethprocs, stintjson, nimcrypto, ethhexstrings, chronicles from os import getCurrentDir, DirSep diff --git a/tests/testrpcmacro.nim b/tests/testrpcmacro.nim index 4b481e9..43cab64 100644 --- a/tests/testrpcmacro.nim +++ b/tests/testrpcmacro.nim @@ -1,5 +1,5 @@ import unittest, json, tables, chronicles -import ../rpcsockets +import ../rpcsocket type # some nested types to check object parsing diff --git a/tests/testserverclient.nim b/tests/testserverclient.nim index 926b855..a50f03f 100644 --- a/tests/testserverclient.nim +++ b/tests/testserverclient.nim @@ -1,5 +1,5 @@ import unittest, json, chronicles -import ../rpcclient, ../rpcsockets +import ../rpcclient, ../rpcsocket var srv = newRpcSocketServer(["localhost:8545"]) var client = newRpcStreamClient()