mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-21 11:46:50 +02:00
fix comments for ringlogger
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user