Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abstract comparison logic to a method and return small values as comp… #740

Merged
merged 1 commit into from
Jun 13, 2018

Conversation

lovesh
Copy link
Contributor

@lovesh lovesh commented Jun 12, 2018

…arison result

Signed-off-by: Lovesh Harchandani lovesh.bond@gmail.com

…arison result

Signed-off-by: Lovesh Harchandani <lovesh.bond@gmail.com>
@devin-fisher devin-fisher self-requested a review June 12, 2018 22:10


def initKeyValueStorage(keyValueType, dataLocation, keyValueStorageName,
open=True, read_only=False) -> KeyValueStorage:
from storage.kv_store_leveldb import KeyValueStorageLeveldb
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we importing in the function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid the circular dependency. The storage specific files also import helper.py

@lovesh
Copy link
Contributor Author

lovesh commented Jun 12, 2018

Test this please

Copy link
Contributor

@devin-fisher devin-fisher left a comment

Choose a reason for hiding this comment

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

Looks good. Small change.

@lovesh
Copy link
Contributor Author

lovesh commented Jun 13, 2018

Test this please

1 similar comment
@lovesh
Copy link
Contributor Author

lovesh commented Jun 13, 2018

Test this please

@lovesh lovesh merged commit b0cdc3f into master Jun 13, 2018
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.

None yet

2 participants