server: remove dead code (s.partials) (#8708)

Follow-up to #6300

Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>
This commit is contained in:
Stephan Renatus
2026-05-28 10:59:54 +02:00
committed by GitHub
parent 37830be801
commit 7fe3066154
-3
View File
@@ -130,7 +130,6 @@ type Server struct {
certPoolFileHash []byte
minTLSVersion uint16
mtx sync.RWMutex
partials map[string]rego.PartialResult
preparedEvalQueries *cache
store storage.Store
manager *plugins.Manager
@@ -226,7 +225,6 @@ func (s *Server) Init(ctx context.Context) (*Server, error) {
return nil, err
}
s.partials = map[string]rego.PartialResult{}
s.preparedEvalQueries = newCache(pqMaxCacheSize)
s.defaultDecisionPath = s.generateDefaultDecisionPath()
s.manager.RegisterNDCacheTrigger(s.updateNDCache)
@@ -1085,7 +1083,6 @@ func (s *Server) reload(_ context.Context, _ storage.Transaction, evt storage.Tr
// races--the state must be accessed _after_ a txn has been opened.
// reset some cached info
s.partials = map[string]rego.PartialResult{}
s.preparedEvalQueries = newCache(pqMaxCacheSize)
s.defaultDecisionPath = s.generateDefaultDecisionPath()
if evt.PolicyChanged() {