diff options
Diffstat (limited to 'identity/bare.go')
-rw-r--r-- | identity/bare.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/identity/bare.go b/identity/bare.go index 3e6ca32f..e6ae2384 100644 --- a/identity/bare.go +++ b/identity/bare.go @@ -185,14 +185,14 @@ func (i *Bare) Validate() error { // Write the identity into the Repository. In particular, this ensure that // the Id is properly set. -func (i *Bare) Commit(repo repository.ClockedRepo) error { +func (i *Bare) CommitWithRepo(repo repository.ClockedRepo) error { // Nothing to do, everything is directly embedded return nil } // If needed, write the identity into the Repository. In particular, this // ensure that the Id is properly set. -func (i *Bare) CommitAsNeeded(repo repository.ClockedRepo) error { +func (i *Bare) CommitAsNeededWithRepo(repo repository.ClockedRepo) error { // Nothing to do, everything is directly embedded return nil } @@ -212,3 +212,7 @@ func (i *Bare) LastModificationLamport() lamport.Time { func (i *Bare) LastModification() timestamp.Timestamp { return 0 } + +func (i *Bare) NeedCommit() bool { + return false +} |