mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 11:40:06 +00:00
pass dc/partition when normalizing peerings
This commit is contained in:
parent
6793f82d01
commit
0afe8c14ee
@ -55,7 +55,7 @@ export default class PeerService extends RepositoryService {
|
||||
},
|
||||
body: body.map((item) => {
|
||||
return cache(
|
||||
normalizePeerPayload(item),
|
||||
normalizePeerPayload(item, dc, partition),
|
||||
(uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${item.Name}`
|
||||
);
|
||||
}),
|
||||
@ -92,7 +92,7 @@ export default class PeerService extends RepositoryService {
|
||||
uri: uri,
|
||||
},
|
||||
body: cache(
|
||||
normalizePeerPayload(body),
|
||||
normalizePeerPayload(body, dc, partition),
|
||||
(uri) => uri`peer:///${partition}/${ns}/${dc}/peer/${body.Name}`
|
||||
),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user