fix(grpc-client): add early returns to avoid redundant operations by huangdijia · Pull Request #7672 · hyperf/hyperf
- Add early return in start() method when client is already running - Add early return in init() method when already initialized - Prevents unnecessary lock acquisition and redundant checks
AI review requested due to automatic review settings
December 17, 2025 04:52
huangdijia
deleted the
fix/grpc-client-early-return-optimization
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters