This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f832dc
commit 01b0ffa
Showing
2 changed files
with
99 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This is not an expected return value from this function and we'd need to audit callers of the methods/channels it backs to see if they can handle a null shared pointer return. @heifner has identified that at least the RPC endpoint was not expecting this and handling it poorly.
We can either return a newly created empty trace with the
except
field set to the appropriate exception for duplicates and avoid the cost of getting into chain controller OR just throw the appropriate exception from here and avoid the cost.