From eaf60fffee2495c6e1b13ff53619063c2bc8f302 Mon Sep 17 00:00:00 2001 From: fate-grand-order Date: Mon, 20 Mar 2017 20:15:55 +0800 Subject: [PATCH] fix some typos in notifications/event.go and sinks.go Signed-off-by: fate-grand-order --- notifications/event.go | 4 ++-- notifications/sinks.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/notifications/event.go b/notifications/event.go index b59a72bed..9651cd1b1 100644 --- a/notifications/event.go +++ b/notifications/event.go @@ -77,7 +77,7 @@ type Event struct { Request RequestRecord `json:"request,omitempty"` // Actor specifies the agent that initiated the event. For most - // situations, this could be from the authorizaton context of the request. + // situations, this could be from the authorization context of the request. Actor ActorRecord `json:"actor,omitempty"` // Source identifies the registry node that generated the event. Put @@ -87,7 +87,7 @@ type Event struct { } // ActorRecord specifies the agent that initiated the event. For most -// situations, this could be from the authorizaton context of the request. +// situations, this could be from the authorization context of the request. // Data in this record can refer to both the initiating client and the // generating request. type ActorRecord struct { diff --git a/notifications/sinks.go b/notifications/sinks.go index 549ba97e2..beb8bad46 100644 --- a/notifications/sinks.go +++ b/notifications/sinks.go @@ -151,7 +151,7 @@ func (eq *eventQueue) Write(events ...Event) error { return nil } -// Close shutsdown the event queue, flushing +// Close shuts down the event queue, flushing func (eq *eventQueue) Close() error { eq.mu.Lock() defer eq.mu.Unlock()