Skip to content

Commit 51a85b9

Browse files
committed
Comment updating
1 parent 1866c99 commit 51a85b9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/app/server-cluster/ServerClusterInterfaceRegistry.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ class ServerClusterInterfaceRegistry
3232

3333
/// Associate a specific interface with the given endpoint.
3434
///
35-
/// There MUST be a single cluster registration for any given endpoint
36-
/// and Register will error out if an existing cluster interface `cluster` already
37-
/// exists on the given endpoint for the given clusterid.
35+
/// A `ServerClusterInterface` may only be associated on a single endpoint id and
36+
/// there can be only a single registration for a given `endpointId/clusterId` path.
37+
///
38+
/// This means Register WILL RETURN AN ERROR if:
39+
/// - A registration on the given `endpointId/cluster->GetClusterID()` already exists
40+
/// - The given `cluster` is already registered for some enpoint id
3841
///
3942
/// Registrations need a valid endpoint id and cluster MUST return a valid cluster id.
4043
[[nodiscard]] CHIP_ERROR Register(EndpointId endpointId, ServerClusterInterface * cluster);

0 commit comments

Comments
 (0)