Skip to content

Commit

Permalink
remove previous cache
Browse files Browse the repository at this point in the history
  • Loading branch information
joschahenningsen committed Oct 30, 2024
1 parent 3211efc commit 798e930
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions server/backend/rpcserver.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package backend

import (
"github.com/TUM-Dev/Campus-Backend/server/utils"
"sync"

pb "github.com/TUM-Dev/Campus-Backend/server/api/tumdev"
Expand All @@ -14,7 +13,6 @@ type CampusServer struct {
feedbackEmailLastReuestAt *sync.Map
db *gorm.DB
deviceBuf *deviceBuffer // deviceBuf stores all devices from recent request and flushes them to db
cache *utils.Cache
}

// Verify that CampusServer implements the pb.CampusServer interface
Expand All @@ -26,6 +24,5 @@ func New(db *gorm.DB) *CampusServer {
db: db,
deviceBuf: newDeviceBuffer(),
feedbackEmailLastReuestAt: &sync.Map{},
cache: utils.NewCache(),
}
}

0 comments on commit 798e930

Please sign in to comment.