mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(docs) Fix formatting
This commit is contained in:
parent
41abd8982f
commit
c4a27003c6
@ -28,20 +28,20 @@ services:
|
|||||||
// Register one or more services
|
// Register one or more services
|
||||||
serviceRegistry.registerService(
|
serviceRegistry.registerService(
|
||||||
ServiceKey.forRest(serviceId, nodeId),
|
ServiceKey.forRest(serviceId, nodeId),
|
||||||
instanceUuid, // unique
|
instanceUuid, // unique
|
||||||
externalAddress); // bind-address
|
externalAddress); // bind-address
|
||||||
|
|
||||||
// Non-partitioned GRPC service
|
// Non-partitioned GRPC service
|
||||||
serviceRegistry.registerService(
|
serviceRegistry.registerService(
|
||||||
ServiceKey.forServiceDescriptor(descriptor, ServicePartition.any()),
|
ServiceKey.forServiceDescriptor(descriptor, ServicePartition.any()),
|
||||||
instanceUuid,
|
instanceUuid,
|
||||||
externalAddress);
|
externalAddress);
|
||||||
|
|
||||||
// Partitioned GRPC service
|
// Partitioned GRPC service
|
||||||
serviceRegistry.registerService(
|
serviceRegistry.registerService(
|
||||||
ServiceKey.forServiceDescriptor(descriptor, ServicePartition.partition(5)),
|
ServiceKey.forServiceDescriptor(descriptor, ServicePartition.partition(5)),
|
||||||
instanceUuid,
|
instanceUuid,
|
||||||
externalAddress);
|
externalAddress);
|
||||||
|
|
||||||
// (+ any other services)
|
// (+ any other services)
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user