Skip to content

Commit 3787298

Browse files
DOC-5711 slight changes to examples following tests
1 parent 6acf4f6 commit 3787298

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

content/develop/clients/lettuce/connect.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ and pass them to the `ClientOptions` builder as shown in the example below:
272272
import io.lettuce.core.*;
273273
import io.lettuce.core.api.StatefulRedisConnection;
274274
import io.lettuce.core.protocol.ProtocolVersion;
275+
import java.time.Duration;
275276
// ...
276277
// ...
277278

@@ -284,7 +285,7 @@ MaintNotificationsConfig maintNotificationsConfig = MaintNotificationsConfig.bui
284285
.build();
285286

286287
TimeoutOptions timeoutOptions = TimeoutOptions.builder()
287-
.relaxedTimeoutsDuringMaintenance( Duration.ofSeconds(10))
288+
.relaxedTimeoutsDuringMaintenance(Duration.ofSeconds(10))
288289
.build();
289290

290291
ClientOptions clientOptions = ClientOptions.builder()

content/develop/clients/nodejs/connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ during the connection:
345345
const client = createClient({
346346
RESP: 3,
347347
maintNotifications: 'auto',
348-
maintEndpointType: 'auto'
348+
maintEndpointType: 'auto',
349349
maintRelaxedCommandTimeout: 10000,
350350
maintRelaxedSocketTimeout: 10000,
351351
...

content/develop/clients/redis-py/connect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ from redis.maint_notifications import MaintNotificationsConfig, EndpointType
272272
r = redis.Redis(
273273
decode_responses=True,
274274
protocol=3,
275-
maint_notifications_config = MaintNotificationsConfig(
275+
maint_notifications_config=MaintNotificationsConfig(
276276
enabled=True,
277277
proactive_reconnect=True,
278278
relaxed_timeout=10,

0 commit comments

Comments
 (0)