This commit is contained in:
Daniel 2024-12-23 17:19:49 +08:00
parent 64c2b6a2a2
commit 6f443be578
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -48,6 +48,11 @@ var (
// checkIndex 自动校验数据库索引,仅在数据同步执行完成后执行一次。
func checkIndex() {
checkIndexOnce.Do(func() {
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {
// 移动端不执行校验 https://ld246.com/article/1734939896061
return
}
logging.LogInfof("start checking index...")
removeDuplicateDatabaseIndex()