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

New persistence client bean for DB clients management #2795

Merged
merged 10 commits into from
Nov 8, 2019

Conversation

wxing1292
Copy link
Contributor

No description provided.

)

// NewBeanByFactory crate a new store bean using factory
func NewBeanByFactory(
Copy link
Collaborator

Choose a reason for hiding this comment

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

How about NewBeanFromFactory?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

@@ -44,8 +44,8 @@ type (
NewTaskManager() (p.TaskManager, error)
// NewShardManager returns a new shard manager
NewShardManager() (p.ShardManager, error)
// NewHistoryV2Manager returns a new historyV2 manager
NewHistoryV2Manager() (p.HistoryManager, error)
// NewHistoryManager returns a new historyV2 manager
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you also fix the comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure


type (
// Bean in an collection of persistence manager
Bean interface {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it being used anywhere in this PR? or just for future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i have a really large commit doing service startup logic refactoring, this is part of that

@coveralls
Copy link

coveralls commented Nov 8, 2019

Coverage Status

Coverage decreased (-0.1%) to 66.496% when pulling d029dbc on persistence-bean into dbd9ffc on master.

@@ -18,7 +18,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

package persistence
package client
Copy link
Contributor

@yycptt yycptt Nov 8, 2019

Choose a reason for hiding this comment

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

Can we rename the New() function in this file to maybe NewFactory()? I think client.New() returning a persistence factory is kind of counter-intuitive.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@wxing1292 wxing1292 merged commit 7924799 into master Nov 8, 2019
@wxing1292 wxing1292 deleted the persistence-bean branch November 8, 2019 18:51
anish531213 pushed a commit to anish531213/cadence that referenced this pull request Nov 18, 2019
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.

4 participants