Skip to content

Commit

Permalink
apparently, nobody ever registered the repository to be finalized pro…
Browse files Browse the repository at this point in the history
…perly
  • Loading branch information
estebanlm committed Sep 5, 2023
1 parent a679bd0 commit f84e6e5
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
initialization
initialize

super initialize.
self initializeCache.
self initializeCache
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
initialization
initializeCache

cache := VOCache new.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
defaults
defaultPoolSize
^ 10

^ 1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
finalization
finalize

self stopSDAMClient
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
initialization
initialize

super initialize.

"register for finalization"
FinalizationRegistry default add: self.

insertConcerns := SmallDictionary new.
removeConcerns := SmallDictionary new.
updateConcerns := SmallDictionary new.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
initialization
initializeMongoUrls: aCollection database: databaseString username: aUserName password: aPassword

databaseName := databaseString.
username := aUserName.
password := aPassword.

self initialize.

self ensuringCurrentOnSave: false.
Expand All @@ -15,4 +17,4 @@ initializeMongoUrls: aCollection database: databaseString username: aUserName pa
maxConnections: self poolSize;
connectTimeout: self connectionTimeout;
socketTimeout: self connectionTimeout.
sdamClient start.
sdamClient start
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
finalization
stopSDAMClient

sdamClient ifNotNil: #stop

0 comments on commit f84e6e5

Please sign in to comment.