fix comments for ringlogger

This commit is contained in:
Murat Kabilov 2017-09-26 13:12:38 +02:00
parent 7667847bfe
commit c67f06956e
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ func New(size int) *RingLog {
return &r return &r
} }
// Insert inserts new LogEntry into the ring logger // Insert inserts new entry into the ring logger
func (r *RingLog) Insert(obj interface{}) { func (r *RingLog) Insert(obj interface{}) {
r.Lock() r.Lock()
defer r.Unlock() defer r.Unlock()
@ -39,7 +39,7 @@ func (r *RingLog) Insert(obj interface{}) {
} }
} }
// Walk dumps all the LogEntries from the Ring logger // Walk dumps all the entries from the Ring logger
func (r *RingLog) Walk() []interface{} { func (r *RingLog) Walk() []interface{} {
res := make([]interface{}, 0) res := make([]interface{}, 0)