Skip to content
This repository was archived by the owner on Oct 5, 2021. It is now read-only.

fix issue with refresh_schema thread #102

Merged
merged 2 commits into from
Jan 20, 2020
Merged

fix issue with refresh_schema thread #102

merged 2 commits into from
Jan 20, 2020

Conversation

tanjabrzak
Copy link
Contributor

@tanjabrzak tanjabrzak commented Jan 20, 2020

@tanjabrzak tanjabrzak requested a review from joycelau1 January 20, 2020 19:10
@@ -61,7 +62,7 @@ def retrieve
def schema_refresher
loop do
refresh_schema
sleep(SCHEMA_REFRESH_INTERVAL)
sleep(SCHEMA_REFRESH_INTERVAL.to_i)

Choose a reason for hiding this comment

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

hm, this shouldn't be needed, ruby automatically converts 1.hour to 3600, but i guess there is a reason to this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

when value gets from yml, than it is parsed as string
if it gets default value, parsing to int will work too

Choose a reason for hiding this comment

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

yeah, strange that i won't get parsed as an integer, but this should than fix it!

Copy link

@PalSzabolcs PalSzabolcs left a comment

Choose a reason for hiding this comment

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

minor comment, but looks ok

@tanjabrzak tanjabrzak merged commit f4d4654 into master Jan 20, 2020
@tanjabrzak tanjabrzak deleted the schema-thread branch January 20, 2020 19:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants