refactor for using repomaint

This commit is contained in:
2026-05-21 22:33:57 -06:00
parent d71a8eb946
commit 80fa7f8392
4 changed files with 23 additions and 6 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ func (s *Server) handlerRefresh(w http.ResponseWriter, req *http.Request) {
return
}
if err := s.c.Refresh(); err != nil {
if err := s.rs.Sync(); err != nil {
slog.Error("refresh failed", "err", err)
http.Error(w, "refresh failed", http.StatusInternalServerError)
return