Skip to content

Commit

Permalink
refactor(experimental): nit: rename define to describe
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva committed Mar 27, 2024
1 parent 46f10af commit bd0f27a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const devnetTransport = createDefaultRpcSubscriptionsTransport({ url: devnetUrl
const testnetTransport = createDefaultRpcSubscriptionsTransport({ url: testnetUrl });
const mainnetTransport = createDefaultRpcSubscriptionsTransport({ url: mainnetUrl });

// [DEFINE] createDefaultRpcSubscriptionsTransport.
// [DESCRIBE] createDefaultRpcSubscriptionsTransport.
{
// No cluster specified should be generic `RpcSubscriptionsTransport`.
{
Expand Down Expand Up @@ -71,7 +71,7 @@ const mainnetTransport = createDefaultRpcSubscriptionsTransport({ url: mainnetUr
}
}

// [DEFINE] createSolanaRpcSubscriptionsFromTransport.
// [DESCRIBE] createSolanaRpcSubscriptionsFromTransport.
{
const genericRpc = createSolanaRpcSubscriptionsFromTransport(genericTransport);
const devnetRpc = createSolanaRpcSubscriptionsFromTransport(devnetTransport);
Expand Down Expand Up @@ -137,7 +137,7 @@ const mainnetTransport = createDefaultRpcSubscriptionsTransport({ url: mainnetUr
}
}

// [DEFINE] createSolanaRpcSubscriptionsFromTransport_UNSTABLE.
// [DESCRIBE] createSolanaRpcSubscriptionsFromTransport_UNSTABLE.
{
const genericRpc = createSolanaRpcSubscriptionsFromTransport_UNSTABLE(genericTransport);
const devnetRpc = createSolanaRpcSubscriptionsFromTransport_UNSTABLE(devnetTransport);
Expand All @@ -153,7 +153,7 @@ const mainnetTransport = createDefaultRpcSubscriptionsTransport({ url: mainnetUr
}
}

// [DEFINE] createSolanaRpcSubscriptions.
// [DESCRIBE] createSolanaRpcSubscriptions.
{
const genericRpc = createSolanaRpcSubscriptions(genericUrl);
const devnetRpc = createSolanaRpcSubscriptions(devnetUrl);
Expand Down Expand Up @@ -219,7 +219,7 @@ const mainnetTransport = createDefaultRpcSubscriptionsTransport({ url: mainnetUr
}
}

// [DEFINE] createSolanaRpcSubscriptions_UNSTABLE.
// [DESCRIBE] createSolanaRpcSubscriptions_UNSTABLE.
{
const genericRpc = createSolanaRpcSubscriptions_UNSTABLE(genericUrl);
const devnetRpc = createSolanaRpcSubscriptions_UNSTABLE(devnetUrl);
Expand Down
6 changes: 3 additions & 3 deletions packages/rpc/src/__typetests__/rpc-clusters-typetest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const devnetTransport = createDefaultRpcTransport({ url: devnetUrl });
const testnetTransport = createDefaultRpcTransport({ url: testnetUrl });
const mainnetTransport = createDefaultRpcTransport({ url: mainnetUrl });

// [DEFINE] createDefaultRpcTransport.
// [DESCRIBE] createDefaultRpcTransport.
{
// No cluster specified should be generic `RpcTransport`.
{
Expand Down Expand Up @@ -66,7 +66,7 @@ const mainnetTransport = createDefaultRpcTransport({ url: mainnetUrl });
}
}

// [DEFINE] createSolanaRpcFromTransport.
// [DESCRIBE] createSolanaRpcFromTransport.
{
const genericRpc = createSolanaRpcFromTransport(genericTransport);
const devnetRpc = createSolanaRpcFromTransport(devnetTransport);
Expand Down Expand Up @@ -121,7 +121,7 @@ const mainnetTransport = createDefaultRpcTransport({ url: mainnetUrl });
}
}

// [DEFINE] createSolanaRpc.
// [DESCRIBE] createSolanaRpc.
{
const genericRpc = createSolanaRpc(genericUrl);
const devnetRpc = createSolanaRpc(devnetUrl);
Expand Down

0 comments on commit bd0f27a

Please sign in to comment.