Skip to content
This repository was archived by the owner on Dec 29, 2024. It is now read-only.

Velan gremgo #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Velan gremgo #49

wants to merge 3 commits into from

Conversation

velann21
Copy link

Hi Team,

I have changed the isConnected function from the connection.go file to IsConnected() I mean to say I have made the isConnected function as public to make sure whether the my connection is successful or not.

Regards
velan

connection.go Outdated
@@ -10,7 +10,8 @@ import (

type dialer interface {
connect() error
isConnected() bool
//Changed this method to Isconnected from isconnected to make it avail as public method
Copy link
Owner

Choose a reason for hiding this comment

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

Remove this comment, the commit message already says what you have done, and the capitalization already gives an indication that the method is public.

connection.go Outdated
@@ -72,8 +73,8 @@ func (ws *Ws) connect() (err error) {
}
return
}

func (ws *Ws) isConnected() bool {
//Changed this method to Isconnected from isconnected to make it avail as public method
Copy link
Owner

Choose a reason for hiding this comment

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

Same as above.

Copy link
Author

Choose a reason for hiding this comment

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

I have removed the comments as you mentioned above

@ChrisSandison
Copy link

Would be great if this was merged 🙌

@velann21
Copy link
Author

Is tat above change get merged into master?? Still I couldn't see the changes in master, If its not yet merged can some one help me in merging this to master.

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