Stop drains remaining entries and shuts down the flush goroutine.
()
| 228 | |
| 229 | func insertQueryLogEntries(ctx context.Context, db *sql.DB, table string, batch []QueryLogEntry) error { |
| 230 | if len(batch) == 0 { |
| 231 | return nil |
| 232 | } |
| 233 | if ctx == nil { |
| 234 | ctx = context.Background() |
| 235 | } |