mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
## What changed? I renamed the getters on `metricDefinition` to follow go's guidelines. ## Why? Not only does it save typing, it's better Go. Quoth [Effective Go](https://go.dev/doc/effective_go#Getters): > ...it's neither idiomatic nor necessary to put Get into the getter's name. If you have a field called owner (lower case, unexported), the getter method should be called Owner (upper case, exported), not GetOwner. ## How did you test it? Our current tests are sufficient ## Potential risks None ## Is hotfix candidate? No.
Update State Machine
The diagram below depicts the state machine implemented in update.go.
stateDiagram-v2
[*] --> Admitted: New
Admitted --> ProvisionallyRequested: onRequestMsg
ProvisionallyRequested --> Requested: commit
Requested --> ProvisionallyAccepted: onAcceptanceMsg
ProvisionallyAccepted --> Accepted: commit
Requested --> ProvisionallyCompleted: onRejectionMsg
ProvisionallyCompleted --> Completed: commit
ProvisionallyAccepted --> ProvisionallyCompleted: onResponse
Accepted --> ProvisionallyCompleted: onResponse