Skip to content

Commit

Permalink
better checkRedundantConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
DaBigBlob committed Sep 11, 2024
1 parent a0a2f93 commit 4287f43
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/globcon/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ export function checkHttpUrl(url: string) {
}

export function checkRedundantConfig(conf: libsqlConfig) {
if (conf.encryptionKey) conserror("'encryptionKey' config unsupported.");
if (conf.syncUrl) conserror("'syncUrl' config unsupported because 'url' is the remote url. (embedded replicas unsupported)");
if (conf.syncInterval) conserror("'syncInterval' config unsupported because nothing to sync. (embedded replicas unsupported)");
if (conf.tls) conserror("'tls' config unsupported. Change url scheme to 'http' for no tls and 'https' for tls.");
if (conf.concurrency) conserror("'concurrency' config unsupported. You may use a custom fetch to specify concurrency.");
if (conf.encryptionKey !== undefined) conserror("'encryptionKey' config unsupported.");
if (conf.syncUrl !== undefined) conserror("'syncUrl' config unsupported because 'url' is the remote url. (embedded replicas unsupported)");
if (conf.syncInterval !== undefined) conserror("'syncInterval' config unsupported because nothing to sync. (embedded replicas unsupported)");
if (conf.tls !== undefined) conserror("'tls' config unsupported. Change url scheme to 'http' for no tls and 'https' for tls.");
if (conf.concurrency !== undefined) conserror("'concurrency' config unsupported. You may use a custom fetch to specify concurrency.");
}

0 comments on commit 4287f43

Please sign in to comment.