Skip to content

Commit

Permalink
Revert "Open partial Realms (#754)" (#765)
Browse files Browse the repository at this point in the history
This reverts commit eed5a94.
  • Loading branch information
kraenhansen authored Mar 23, 2018
1 parent 055a1b8 commit 4bcb9df
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
23 changes: 15 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
"react-sortable-hoc": "^0.6.8",
"react-virtualized": "^9.18.5",
"reactstrap": "^4.8.0",
"realm": "^2.3.0",
"realm": "^2.2.14",
"uuid": "^3.1.0"
},
"devDependencies": {
Expand Down
15 changes: 2 additions & 13 deletions src/services/ros/realms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ export const getUrl = (user: Realm.Sync.User, realmPath: string) => {
return url.toString();
};

interface IExtendedRealmSyncConfiguration extends Realm.Sync.SyncConfiguration {
_disablePartialSyncUrlChecks?: true;
}

interface IExtendedRealmConfiguration extends Realm.Configuration {
sync: IExtendedRealmSyncConfiguration;
}

export const open = async (
user: Realm.Sync.User,
realmPath: string,
Expand All @@ -59,7 +51,7 @@ export const open = async (
): Promise<Realm> => {
const url = getUrl(user, realmPath);

const config: IExtendedRealmConfiguration = {
const realm = Realm.open({
encryptionKey,
schema,
sync: {
Expand All @@ -68,11 +60,8 @@ export const open = async (
error: ssl.errorCallback || defaultSyncErrorCallback,
validate_ssl: ssl.validateCertificates,
ssl_trust_certificate_path: ssl.certificatePath,
_disablePartialSyncUrlChecks: true,
},
};

const realm = Realm.open(config as Realm.Configuration);
});

if (progressCallback) {
realm.progress(progressCallback);
Expand Down

0 comments on commit 4bcb9df

Please sign in to comment.