Skip to content

Commit

Permalink
refactor: delete dead code for restart
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 15, 2025
1 parent d4c34ae commit 561db95
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,6 @@ func main() {
app_data.Unlock()
runtime.GC()

// go func() {
// for {
// // TODO perhaps better just actually launching container restart
// time.Sleep(time.Hour * 4)
// app_data.Lock()
// app_data.Refresh()
// relay_fs2 := GetRelayFs(stat_router.AppData)
// relay_fs.Files = relay_fs2.Files
// app_data.Unlock()
// }
// }()

if settings.IsRelayActive(app_data.Mapped) {
go func() {
for {
Expand Down

0 comments on commit 561db95

Please sign in to comment.