Skip to content

Move towards non global logger p1#249

Merged
cviecco merged 3 commits intoCloud-Foundations:masterfrom
cviecco:move-towards-non-global-logger-p1
Dec 6, 2024
Merged

Move towards non global logger p1#249
cviecco merged 3 commits intoCloud-Foundations:masterfrom
cviecco:move-towards-non-global-logger-p1

Conversation

@cviecco
Copy link
Copy Markdown
Contributor

@cviecco cviecco commented Nov 19, 2024

No description provided.

db *sql.DB
dbType string
cacheDB *sql.DB
dbDone chan struct{}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing the type to chan <- struct{} so that you can enforce only one place is able to read from the chanel.

func (state *RuntimeState) BackgroundDBCopy(initialSleep time.Duration, done chan struct{}, logger log.DebugLogger) {
select {
case <-done:
//fmt.Println("Received:", v)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete commented code.


select {
case <-done:
//fmt.Println("Received:", v)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please delete commented code.

@cviecco cviecco closed this Dec 6, 2024
@cviecco cviecco reopened this Dec 6, 2024
@cviecco cviecco merged commit 6e9d03f into Cloud-Foundations:master Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants