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

feat: leveldb key store #35

Merged
merged 2 commits into from
Aug 23, 2020

Conversation

hea9549
Copy link
Member

@hea9549 hea9549 commented Aug 16, 2020

No description provided.

@hea9549 hea9549 changed the title Feat/leveldb key store WIP: leveldb key store Aug 16, 2020
Copy link
Member

@hihiboss hihiboss left a comment

Choose a reason for hiding this comment

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

Please write some test cases for LevelDBStore :)

@hea9549 hea9549 changed the title WIP: leveldb key store feat: leveldb key store Aug 19, 2020
@hea9549 hea9549 marked this pull request as ready for review August 19, 2020 06:42
@baumstern
Copy link
Contributor

baumstern commented Aug 19, 2020

이 PR과는 다소 관련이 없지만..
keychain.Store 인터페이스의 책임을 논의해보면 좋을 것 같아서 따로 이슈를 만들었습니다: #46

@@ -43,7 +43,7 @@ func (w *WalletApi) GetWallet(context *gin.Context) {
return
}

key := w.store.Get(request.ID)
key, err := w.store.Get(request.ID)
Copy link
Member

Choose a reason for hiding this comment

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

You need to handle this error.

keychain/leveldb/store_test.go Outdated Show resolved Hide resolved
func TestKeyStore_Get(t *testing.T) {
// set
dbProvider := leveldb.CreateNewDBProvider(TestTbPath)
defer func() {
Copy link
Member

Choose a reason for hiding this comment

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

I think you can extract this defer anonymous function :)

@hihiboss
Copy link
Member

Please fix the conflict :)

@hea9549 hea9549 force-pushed the feat/leveldb_key_store branch 3 times, most recently from 7bc8499 to 25c89d4 Compare August 23, 2020 06:15
@junbeomlee junbeomlee merged commit b486694 into DE-labtory:develop Aug 23, 2020
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

4 participants