diff options
author | Michael Muré <batolettre@gmail.com> | 2023-08-14 16:58:06 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2023-08-14 16:58:06 +0200 |
commit | 297e1931a7b5913275e8e9b0a46494d95e7e5e7c (patch) | |
tree | 5c5ef10f66bff4f9e6e3bbe87c70c02940bdbce3 /cache/cached.go | |
parent | f0167a1d6068d22af5ffff260e2848f7c14a71b3 (diff) | |
download | git-bug-bootstrap-rework-2.tar.gz git-bug-bootstrap-rework-2.zip |
WIP 2bootstrap-rework-2
Diffstat (limited to 'cache/cached.go')
-rw-r--r-- | cache/cached.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cache/cached.go b/cache/cached.go index 99f384878..d2531f0f2 100644 --- a/cache/cached.go +++ b/cache/cached.go @@ -9,17 +9,17 @@ import ( "github.com/MichaelMure/git-bug/util/lamport" ) -var _ dag.Interface[dag.Snapshot, dag.Operation] = &CachedEntityBase[dag.Snapshot, dag.Operation]{} -var _ CacheEntity = &CachedEntityBase[dag.Snapshot, dag.Operation]{} +var _ entity.Interface[entity.Snapshot, dag.Operation] = &CachedEntityBase[entity.Snapshot, dag.Operation]{} +var _ CacheEntity = &CachedEntityBase[entity.Snapshot, dag.Operation]{} // CachedEntityBase provide the base function of an entity managed by the cache. -type CachedEntityBase[SnapT dag.Snapshot, OpT dag.Operation] struct { +type CachedEntityBase[SnapT entity.Snapshot, OpT dag.Operation] struct { repo repository.ClockedRepo entityUpdated func(id entity.Id) error getUserIdentity getUserIdentityFunc mu sync.RWMutex - entity dag.Interface[SnapT, OpT] + entity entity.WithCommit[SnapT, OpT] } func (e *CachedEntityBase[SnapT, OpT]) Id() entity.Id { |