Skip to content

Commit

Permalink
CR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shay23b committed Sep 27, 2023
1 parent 40f9c52 commit a1bedc1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion server/background_tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const SCHEMAVERSE_DLS_INNER_SUBJ = "$memphis_schemaverse_inner_dls"
const SCHEMAVERSE_DLS_CONSUMER = "$memphis_schemaverse_dls_consumer"
const CACHE_UDATES_SUBJ = "$memphis_cache_updates"
const INTEGRATIONS_AUDIT_LOGS_CONSUMER = "$memphis_integrations_audit_logs_consumer"
const INTEGRATIONS_AUDIT_LOGS_SUBJ = "$memphis_integrations_audit_logs"

var LastReadThroughputMap map[string]models.Throughput
var LastWriteThroughputMap map[string]models.Throughput
Expand Down
2 changes: 0 additions & 2 deletions server/jetstream.go
Original file line number Diff line number Diff line change
Expand Up @@ -1335,8 +1335,6 @@ func (a *Account) EnableJetStream(limits map[string]JetStreamAccountLimits) erro
DLS_UNACKED_CONSUMER_CREATED = true
case dlsSchemaverseStream:
DLS_SCHEMAVERSE_CONSUMER_CREATED = true
// case integrationsAuditLogsStream:
// INTEGRATIONS_AUDIT_LOGS_CONSUMER_CREATED = true
}
// added by Memphis ***

Expand Down
4 changes: 2 additions & 2 deletions server/memphis_handlers_integrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ func (s *Server) getIntegrationAuditLogs(integrationType, tenantName string) ([]
const timeout = 500 * time.Millisecond
uid := s.memphis.nuid.Next()
msgs := []StoredMsg{}
durableName := "$memphis_integrations_audit_logs_consumer_" + uid
durableName := INTEGRATIONS_AUDIT_LOGS_CONSUMER + "_" + uid
cc := ConsumerConfig{
DeliverPolicy: DeliverAll,
AckPolicy: AckExplicit,
Expand Down Expand Up @@ -615,7 +615,7 @@ func (s *Server) purgeIntegrationAuditLogs(integrationType, tenantName string) {
return
}

requestSubject := fmt.Sprintf(JSApiMsgDeleteT, INTEGRATIONS_AUDIT_LOGS_SUBJ)
requestSubject := fmt.Sprintf(JSApiMsgDeleteT, integrationsAuditLogsStream)
for _, log := range auditLogs {
var resp JSApiMsgDeleteResponse
req := JSApiMsgDeleteRequest{Seq: log.ID}
Expand Down

0 comments on commit a1bedc1

Please sign in to comment.