Skip to content

Commit

Permalink
Merge pull request #158 from kyoto-framework/v3-server-state-removal-…
Browse files Browse the repository at this point in the history
…path-for-cleanup

Fixed removal path for state.Server cleanup
  • Loading branch information
yznts authored Oct 18, 2023
2 parents e9a50a9 + 9d8c5e7 commit 4dd0cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/state.server.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (s *Server) cleanup() {
// If creation/modification date is out of timeout bounds,
// remove that file.
if time.Since(errorsx.Must(file.Info()).ModTime()) > s.timeout() {
errorsx.Must(0, os.Remove(file.Name()))
errorsx.Must(0, os.Remove(path.Join(s.path(), file.Name())))
}
}
}
Expand Down

0 comments on commit 4dd0cf8

Please sign in to comment.