aboutsummaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-01-07 01:44:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-01-07 01:44:35 +0800
commit18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00 (patch)
treef346aa2c1de4c873ba7d7bf847225b2c319c5694 /rpc
parentac93a6ff6cd1200ab0fb67a5bd0c02cb70646632 (diff)
downloaddexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.gz
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.bz2
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.lz
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.xz
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.tar.zst
dexon-18c77744ff4ad0bc385a4c8b50d28c2a6fde8e00.zip
all: fix spelling errors
Diffstat (limited to 'rpc')
-rw-r--r--rpc/subscription.go2
-rw-r--r--rpc/subscription_test.go2
-rw-r--r--rpc/types.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/rpc/subscription.go b/rpc/subscription.go
index 863d34b20..bcdc3cdfc 100644
--- a/rpc/subscription.go
+++ b/rpc/subscription.go
@@ -30,7 +30,7 @@ var (
ErrSubscriptionNotFound = errors.New("subscription not found")
)
-// ID defines a psuedo random number that is used to identify RPC subscriptions.
+// ID defines a pseudo random number that is used to identify RPC subscriptions.
type ID string
// a Subscription is created by a notifier and tight to that notifier. The client can use
diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go
index 8bb341694..97f2c0d65 100644
--- a/rpc/subscription_test.go
+++ b/rpc/subscription_test.go
@@ -62,7 +62,7 @@ func (s *NotificationTestService) SomeSubscription(ctx context.Context, n, val i
subscription := notifier.CreateSubscription()
go func() {
- // test expects n events, if we begin sending event immediatly some events
+ // test expects n events, if we begin sending event immediately some events
// will probably be dropped since the subscription ID might not be send to
// the client.
time.Sleep(5 * time.Second)
diff --git a/rpc/types.go b/rpc/types.go
index 01b95a170..d8d736efb 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -135,7 +135,7 @@ const (
LatestBlockNumber = BlockNumber(-1)
)
-// UnmarshalJSON parses the given JSON fragement into a BlockNumber. It supports:
+// UnmarshalJSON parses the given JSON fragment into a BlockNumber. It supports:
// - "latest", "earliest" or "pending" as string arguments
// - the block number
// Returned errors: