mirror of
https://github.com/hanzoai/ca.git
synced 2026-11-03 18:08:27 +00:00
11 lines
303 B
Go
11 lines
303 B
Go
package schema
|
|
|
|
// TableInfo.AllColumns caches its result in the table on first use without
|
|
// a lock, so the first concurrent callers race on the write. Warm the cache
|
|
// while the process is still single-threaded: at init.
|
|
func init() {
|
|
for _, t := range TrustycadbTables {
|
|
_ = t.AllColumns()
|
|
}
|
|
}
|