}
}
+func (r *ToolRecordingLog) Events() []string {
+ r.mutex.Lock()
+ defer r.mutex.Unlock()
+
+ return append([]string(nil), r.events...)
+}
+
func (r *ToolRecordingLog) Append(kind, text string) (Message, error) {
r.mutex.Lock()
defer r.mutex.Unlock()
return ctx.Err()
}
-
-func (r *ToolRecordingLog) Events() []string {
- r.mutex.Lock()
- defer r.mutex.Unlock()
-
- return append([]string(nil), r.events...)
-}