mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user