chore: retire unused service

This commit is contained in:
Steven
2024-08-27 23:42:37 +08:00
parent 9d6d93ab39
commit 784d91ab75
10 changed files with 0 additions and 75 deletions

View File

@ -17,7 +17,6 @@ import (
"github.com/yourselfhosted/slash/internal/util"
storepb "github.com/yourselfhosted/slash/proto/gen/store"
"github.com/yourselfhosted/slash/server/common"
"github.com/yourselfhosted/slash/server/metric"
"github.com/yourselfhosted/slash/server/profile"
"github.com/yourselfhosted/slash/store"
)
@ -96,7 +95,6 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
if err := s.createShortcutViewActivity(ctx, c.Request(), shortcut); err != nil {
slog.Warn("failed to create shortcut view activity", slog.String("error", err.Error()))
}
metric.Enqueue("shortcut view")
// Inject shortcut metadata into `index.html`.
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateShortcutMetadata(shortcut).String())
@ -114,7 +112,6 @@ func (s *FrontendService) registerRoutes(e *echo.Echo) {
return c.HTML(http.StatusOK, rawIndexHTML)
}
metric.Enqueue("collection view")
// Inject collection metadata into `index.html`.
indexHTML := strings.ReplaceAll(rawIndexHTML, headerMetadataPlaceholder, generateCollectionMetadata(collection).String())
return c.HTML(http.StatusOK, indexHTML)