Skip to content

Commit

Permalink
Merge pull request #9 from pelican-dev/push_notifications
Browse files Browse the repository at this point in the history
Use a goroutine for the API call
  • Loading branch information
iamkubi authored Apr 20, 2024
2 parents 83d1bd5 + 7c05c0d commit 0f6cd30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ func (s *Server) OnStateChange() {

// Push status update to Panel
s.Log().Debug("pushing server status change to panel")
s.client.PushServerStateChange(s.Context(), remote.ServerStateChange{prevState, st, s.ID()})
go s.client.PushServerStateChange(s.Context(), remote.ServerStateChange{prevState, st, s.ID()})

// Reset the resource usage to 0 when the process fully stops so that all the UI
// views in the Panel correctly display 0.
Expand Down

0 comments on commit 0f6cd30

Please sign in to comment.