-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-11056] Fix caching in Fabric & Dynamic Selection
Both Fabric selection and Dynamic selection services cache GetEndorsersForChaincode requests even if the request contains a bad invocation chain. This patch adds an 'expiring' feature to lazycache that combines the features of lazycache with lazyref. Now if lazyref.Get() returns an error then the ref will not be cached. Change-Id: Ia5022c748d1dd504cd7d8a29f0bf0b5527edc76f Signed-off-by: Bob Stasyszyn <[email protected]>
- Loading branch information
1 parent
2ad5906
commit 0c6b7f1
Showing
10 changed files
with
446 additions
and
101 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 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 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
Oops, something went wrong.