Made status signal printable

gql_cataclysm
noah metz 2023-10-10 12:53:31 -06:00
parent f82bbabc66
commit 92d8dfd006
1 changed files with 3 additions and 0 deletions

@ -259,6 +259,9 @@ func (signal StatusSignal) Permission() Tree {
StatusType: nil, StatusType: nil,
} }
} }
func (signal StatusSignal) String() string {
return fmt.Sprintf("StatusSignal(%s, %+v)", signal.SignalHeader, signal.Changes)
}
func NewStatusSignal(source NodeID, changes Changes) *StatusSignal { func NewStatusSignal(source NodeID, changes Changes) *StatusSignal {
return &StatusSignal{ return &StatusSignal{
NewSignalHeader(Up), NewSignalHeader(Up),