Skip to content

Commit

Permalink
Fix cluster index key name for Darwin attribute cache. (#34078)
Browse files Browse the repository at this point in the history
The endpoint was not being formatted right.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Sep 23, 2024
1 parent 40eb3a0 commit 1055551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRDeviceControllerDataStore.mm
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ - (BOOL)_deleteEndpointIndexForNodeID:(NSNumber *)nodeID

- (NSString *)_clusterIndexKeyForNodeID:(NSNumber *)nodeID endpointID:(NSNumber *)endpointID
{
return [sAttributeCacheClusterIndexKeyPrefix stringByAppendingFormat:@":0x%016llX:%0x04X", nodeID.unsignedLongLongValue, endpointID.unsignedShortValue];
return [sAttributeCacheClusterIndexKeyPrefix stringByAppendingFormat:@":0x%016llX:0x%04X", nodeID.unsignedLongLongValue, endpointID.unsignedShortValue];
}

- (nullable NSArray<NSNumber *> *)_fetchClusterIndexForNodeID:(NSNumber *)nodeID endpointID:(NSNumber *)endpointID
Expand Down

0 comments on commit 1055551

Please sign in to comment.