Make intentions a tuple (to denote immutability)
Since the atom intentions are not meant to be mutable we should make sure that we create the object as a type which is not mutable. This helps with those looking over the code to understand its desired usage which is not to be a mutable collection. Change-Id: I84948faf2e6bd8f4b4a9b27e390c9a03a14efa4b
This commit is contained in:
committed by
Joshua Harlow
parent
6f9448001c
commit
270a8a33ba
@@ -46,7 +46,7 @@ EXECUTE = 'EXECUTE'
|
|||||||
IGNORE = 'IGNORE'
|
IGNORE = 'IGNORE'
|
||||||
REVERT = 'REVERT'
|
REVERT = 'REVERT'
|
||||||
RETRY = 'RETRY'
|
RETRY = 'RETRY'
|
||||||
INTENTIONS = [EXECUTE, IGNORE, REVERT, RETRY]
|
INTENTIONS = (EXECUTE, IGNORE, REVERT, RETRY)
|
||||||
|
|
||||||
# Additional engine states
|
# Additional engine states
|
||||||
SCHEDULING = 'SCHEDULING'
|
SCHEDULING = 'SCHEDULING'
|
||||||
|
|||||||
Reference in New Issue
Block a user