Skip to content

Commit

Permalink
Have processGRHoldTimerExpired call updateDsfState member
Browse files Browse the repository at this point in the history
Summary:
As titled. All logic for state update and failure
handling moved to DsfSubscription::updateDsfState in previous diff

Reviewed By: zechengh09

Differential Revision:
D62064064

Privacy Context Container: L1125642

fbshipit-source-id: 7a41b60110ccd43e6971dbfb8045102cb2bda232
  • Loading branch information
Jasmeet Bagga authored and facebook-github-bot committed Sep 2, 2024
1 parent 2ecbed2 commit 87ff339
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fboss/agent/DsfSubscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,6 @@ void DsfSubscription::processGRHoldTimerExpired() {
return std::shared_ptr<SwitchState>{};
};

sw_->getRib()->updateStateInRibThread([this, updateDsfStateFn]() {
sw_->updateStateWithHwFailureProtection(
folly::sformat("Update state for node: {}", remoteNodeName_),
updateDsfStateFn);
});
updateDsfState(updateDsfStateFn);
}
} // namespace facebook::fboss

0 comments on commit 87ff339

Please sign in to comment.