Increment is equivalent to c = GetOrCreateClock(name) + c.Increment()
(name string)
| 899 | |
| 900 | // Increment is equivalent to c = GetOrCreateClock(name) + c.Increment() |
| 901 | func (repo *GoGitRepo) Increment(name string) (lamport.Time, error) { |
| 902 | c, err := repo.GetOrCreateClock(name) |
| 903 | if err != nil { |
| 904 | return lamport.Time(0), err |
| 905 | } |
| 906 | return c.Increment() |
| 907 | } |
| 908 | |
| 909 | // Witness is equivalent to c = GetOrCreateClock(name) + c.Witness(time) |
| 910 | func (repo *GoGitRepo) Witness(name string, time lamport.Time) error { |
nothing calls this directly
no test coverage detected