refacor: replace shared.Message with shared.State

🤖
This commit is contained in:
Sebastian Mark 2024-10-29 18:46:00 +01:00
parent 5750ec96cb
commit b8823acc97
3 changed files with 22 additions and 22 deletions

View file

@ -14,7 +14,7 @@ func SendPermanentBroadCastMessage() {
tick := time.NewTicker(time.Second)
for {
// Marshal the message into JSON format
jsonMessage, err := json.Marshal(shared.Message)
jsonMessage, err := json.Marshal(shared.State)
if err != nil {
log.Error("Error marshalling message:", "msg", err)
return