fix(core): remove redundant providers (#4648)

This commit is contained in:
Peng Xiao 2023-10-18 04:24:41 +08:00 committed by GitHub
parent e831f612e8
commit 62d2b09e3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,11 +152,8 @@ export const createAffineProviders = (): DocProviderCreator[] => {
return (
[
...createLocalProviders(),
runtimeConfig.enableBroadcastChannelProvider &&
createBroadcastChannelProvider,
runtimeConfig.enableCloud && createAffineSocketIOProvider,
runtimeConfig.enableCloud && createMergeCloudSnapshotProvider,
createIndexedDBDownloadProvider,
] as DocProviderCreator[]
).filter(v => Boolean(v));
};