mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
Add Transaction Discard Comment
This commit is contained in:
parent
27a2eabd82
commit
57fc5c0987
1 changed files with 2 additions and 0 deletions
|
@ -44,6 +44,8 @@ func (t *ConfigTransaction) Commit() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Discard Discards the Transaction.
|
||||||
|
// Is a noop if The Transaction Already Finished due to a Commit() or another Discard()
|
||||||
func (t *ConfigTransaction) Discard() {
|
func (t *ConfigTransaction) Discard() {
|
||||||
t.mutex.Lock()
|
t.mutex.Lock()
|
||||||
defer t.mutex.Unlock()
|
defer t.mutex.Unlock()
|
||||||
|
|
Loading…
Add table
Reference in a new issue