Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Parallelize requests in Org::get
Alexis Sellier committed 4 years ago
commit cca312723f87c7b18d3aa954c2716b4a8bef5cdb
parent b343cbba12d09dda94e2a1a63d14f05876677695
1 file changed +4 -2
modified src/base/orgs/Org.ts
@@ -209,8 +209,10 @@ export class Org {
    );

    try {
-
      const owner = await org.owner();
-
      const resolved = await org.resolvedAddress;
+
      const [owner, resolved] = await Promise.all([
+
        org.owner(),
+
        org.resolvedAddress,
+
      ]);

      // If what is resolved is not the same as the input, it's because we
      // were given a name.