LogWriter should be locked while calling this
()
| 164 | |
| 165 | // LogWriter should be locked while calling this |
| 166 | func (l *LogWriter) flush() { |
| 167 | if l == nil { |
| 168 | return |
| 169 | } |
| 170 | |
| 171 | _ = l.writer.Flush() |
| 172 | _ = l.file.Sync() |
| 173 | } |
| 174 | |
| 175 | func encrypt(key, iv, src []byte) ([]byte, error) { |
| 176 | ivCopy := make([]byte, 16) |
no test coverage detected