Skip to content

Commit fb9eea6

Browse files
committed
docs: typos and corrected priority order (ethers-io#1252, ethers-io#1255).
1 parent d83c583 commit fb9eea6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs.wrm/api/providers/other.wrm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It uses a quorum and connects to multiple [Providers](Provider) as backends,
1111
each configured with a //priority// and a //weight// .
1212

1313
When a request is made, the request is dispatched to multiple backends, randomly
14-
chosen (higher priority backends are always selected first) and the results from
14+
chosen (lower-value priority backends are always selected first) and the results from
1515
each are compared against the others. Only once the quorum has been reached will that
1616
result be accepted and returned to the caller.
1717

@@ -40,9 +40,9 @@ _property: fallbackProviderConfig.provider => [[Provider]]
4040
The provider for this configuration.
4141

4242
_property: fallbackProviderConfig.priority => number
43-
The priority used for the provider. Higher priorities are favoured over lower
44-
priorities. If multiple providers share the same priority, they are chosen
45-
at random.
43+
The priority used for the provider. Lower-value priorities are favoured over
44+
higher-value priorities. If multiple providers share the same priority, they
45+
are chosen at random.
4646

4747
_property: fallbackProviderConfig.stallTimeout => number
4848
The timeout (in ms) after which another [[Provider]] will be attempted. This
@@ -156,7 +156,7 @@ WebSockets are much more intensive on your server resources, as they must manage
156156
and maintain the state for each client. For this reason, many services may also
157157
charge additional fees for using their WebSocket endpoints.
158158

159-
_property: new ethers.provider.WebSocketProvider([ url [ , network ] ])
159+
_property: new ethers.providers.WebSocketProvider([ url [ , network ] ])
160160
Returns a new [[WebSocketProvider]] connected to //url// as the //network//.
161161

162162
If //url// is unspecified, the default ``"ws:/\/localhost:8546"`` will be used.

0 commit comments

Comments
 (0)