Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <[email protected]>
  • Loading branch information
nivi-apple and bzbarsky-apple authored Apr 19, 2024
1 parent 96b68fe commit 1a3027e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/platform/Darwin/DnssdImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ void LogOnFailure(const char * name, DNSServiceErrorType err)
*/
CHIP_ERROR StartSRPTimer(uint16_t timeoutInMSecs, ResolveContext * ctx)
{
// Check to see if an user default value exists for the SRP timeout. If it does, override the timeoutInMSecs with user default
// Check to see if a user default value exists for the SRP timeout. If it does, override the timeoutInMSecs with user default
// value. To override the timeout value, use ` defaults write org.csa-iot.matter.darwin SRPTimeoutInMSecsOverride
// <timeoutinMsecs>` See UserDefaults.mm for details
uint16_t userDefaultSRPTimeoutInMsecs = static_cast<uint16_t>(getUserDefaultDnssdSRPTimeoutInMSecs());
// <timeoutinMsecs>` See UserDefaults.mm for details.
uint16_t userDefaultSRPTimeoutInMsecs = getUserDefaultDnssdSRPTimeoutInMSecs();
if (userDefaultSRPTimeoutInMsecs)
{
timeoutInMSecs = userDefaultSRPTimeoutInMsecs;
Expand Down
3 changes: 1 addition & 2 deletions src/platform/Darwin/UserDefaults.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*
*
* Copyright (c) 2024 Project CHIP Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,7 +19,7 @@
namespace chip {
namespace DeviceLayer {

uint16_t getUserDefaultDnssdSRPTimeoutInMSecs();
uint16_t GetUserDefaultDnssdSRPTimeoutInMSecs();

} // namespace DeviceLayer
} // namespace chip

0 comments on commit 1a3027e

Please sign in to comment.