Removed _state from json attributes
parent
1ce98e2719
commit
7b6ceaaad2
|
|
@ -69,7 +69,7 @@ type BaseLockableStateJSON struct {
|
|||
Owner *NodeID `json:"owner"`
|
||||
Dependencies []NodeID `json:"dependencies"`
|
||||
Requirements []NodeID `json:"requirements"`
|
||||
HolderState *BaseLockHolderState `json:"holder_state"`
|
||||
HolderState *BaseLockHolderState `json:"holder"`
|
||||
}
|
||||
|
||||
func (state * BaseLockableState) MarshalJSON() ([]byte, error) {
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ type BaseThreadState struct {
|
|||
type BaseThreadStateJSON struct {
|
||||
Parent *NodeID `json:"parent"`
|
||||
Children map[NodeID]interface{} `json:"children"`
|
||||
LockableState *BaseLockableState `json:"lockable_state"`
|
||||
LockableState *BaseLockableState `json:"lockable"`
|
||||
}
|
||||
|
||||
func (state * BaseThreadState) MarshalJSON() ([]byte, error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue