(rel string, comments []NoteComment)
| 1309 | } |
| 1310 | |
| 1311 | func (v *Vault) WriteNoteComments(rel string, comments []NoteComment) ([]NoteComment, error) { |
| 1312 | v.mu.Lock() |
| 1313 | defer v.mu.Unlock() |
| 1314 | return v.writeNoteCommentsLocked(rel, comments) |
| 1315 | } |
| 1316 | |
| 1317 | func (v *Vault) removeNoteCommentsLocked(rel string) error { |
| 1318 | abs, err := v.commentsPath(rel) |