Merge pull request #45633 from thaJeztah/24.0_backport_deprecate_builder_streaming

[24.0 backport] builder/remotecontext: deprecate CachableSource, NewCachableSource
This commit is contained in:
Akihiro Suda 2023-05-29 09:53:47 +09:00 committed by GitHub
commit f5899cc1f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,9 @@ type hashed interface {
Digest() digest.Digest
}
// CachableSource is a source that contains cache records for its contents
// CachableSource is a source that contains cache records for its contents.
//
// Deprecated: this type was used for the experimental "stream" support for the classic builder, which is no longer supported.
type CachableSource struct {
mu sync.Mutex
root string
@ -23,7 +25,9 @@ type CachableSource struct {
txn *iradix.Txn
}
// NewCachableSource creates new CachableSource
// NewCachableSource creates new CachableSource.
//
// Deprecated: this type was used for the experimental "stream" support for the classic builder, which is no longer supported.
func NewCachableSource(root string) *CachableSource {
ts := &CachableSource{
tree: iradix.New(),