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

Added support for alternative zookeeper path roots. #21

Closed
wants to merge 1 commit into from
Closed

Added support for alternative zookeeper path roots. #21

wants to merge 1 commit into from

Conversation

jonbonazza
Copy link
Contributor

No description provided.

@codecov-io
Copy link

Current coverage is 30.64% (diff: 40.00%)

Merging #21 into master will decrease coverage by 0.01%

@@             master        #21   diff @@
==========================================
  Files            22         22          
  Lines          1755       1759     +4   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits            538        539     +1   
- Misses         1183       1186     +3   
  Partials         34         34          

Powered by Codecov. Last update 2c61a2e...523036c

@ipostelnik
Copy link
Contributor

@timoha can you merge this PR? Required for people running more than one cluster with single zookeeper.

@@ -33,16 +33,21 @@ func init() {
// in ZooKeeper
type ResourceName string

// Prepend creates a new ResourceName with prefix prepended to the former ResourceName.
func (r ResourceName) Prepend(prefix string) ResourceName {
return ResourceName(prefix + string(r))
Copy link
Collaborator

Choose a reason for hiding this comment

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

should use filepath.Join in order to avoid double slashes if ZookeeperRoot has a trailing slash.

@jonbonazza
Copy link
Contributor Author

Unfortunately, I already deleted this fork. I will reproduce the changes now and open a separate PR.

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