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

Fixed some misspells. #308 #326

Merged
merged 1 commit into from Sep 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cmd/commands/cli/command.go
Expand Up @@ -326,7 +326,7 @@ func (c *Command) identities(argsString string) {
}
ids, err := c.tequilapi.GetIdentities()
if err != nil {
fmt.Println("Error occured:", err)
fmt.Println("Error occurred:", err)
return
}

Expand Down
4 changes: 2 additions & 2 deletions openvpn/discovery/dto/payment_method_per_bytes.go
Expand Up @@ -22,10 +22,10 @@ import (
"github.com/mysterium/node/money"
)

// PaymentMethodPerBytes indicates payment method for data amount transfered
// PaymentMethodPerBytes indicates payment method for data amount transferred
const PaymentMethodPerBytes = "PER_BYTES"

// PaymentPerBytes structure describes price per unit and how much bytes were transfered
// PaymentPerBytes structure describes price per unit and how much bytes were transferred
type PaymentPerBytes struct {
Price money.Money `json:"price"`

Expand Down
2 changes: 1 addition & 1 deletion openvpn/management/connection_mock.go
Expand Up @@ -36,7 +36,7 @@ func (conn *MockConnection) SingleLineCommand(format string, args ...interface{}
return conn.CommandResult, nil
}

// MultiLineCommand sends command to mocked connection and expectes multiple line command response with END marker
// MultiLineCommand sends command to mocked connection and expects multiple line command response with END marker
func (conn *MockConnection) MultiLineCommand(format string, args ...interface{}) (string, []string, error) {
_, _ = conn.SingleLineCommand(format, args...)
return conn.CommandResult, conn.MultilineResponse, nil
Expand Down
6 changes: 3 additions & 3 deletions openvpn/state.go
Expand Up @@ -26,7 +26,7 @@ const ConnectingState = State("CONNECTING")
// WaitState is reported by client in udp mode indicating that connect request is send and response is waiting
const WaitState = State("WAIT")

// AuthenticatingState is reported by client indicating that client is trying to authetincate itself to server
// AuthenticatingState is reported by client indicating that client is trying to authenticate itself to server
const AuthenticatingState = State("AUTH")

// GetConfigState indicates that client is waiting for config from server (push based options)
Expand All @@ -38,11 +38,11 @@ const AssignIpState = State("ASSIGN_IP")
// AddRoutesState indicates that client is setuping routes on tunnel
const AddRoutesState = State("ADD_ROUTES")

// ConnectedState is reported by both client and server and means that client is successfuly connected and server is ready
// ConnectedState is reported by both client and server and means that client is successfully connected and server is ready
// to server incoming client connect requests
const ConnectedState = State("CONNECTED")

// ReconnectingState indicates that client lost connection and is trying to recoonect itself
// ReconnectingState indicates that client lost connection and is trying to reconnect itself
const ReconnectingState = State("RECONNECTING")

// ExitingState is reported by both client and server and means that openvpn process is exiting by any reasons (normal shutdown
Expand Down
4 changes: 2 additions & 2 deletions tequilapi/http_api_server.go
Expand Up @@ -41,7 +41,7 @@ type apiServer struct {
listener net.Listener
}

// NewServer creates http api server for given addres port and http handler
// NewServer creates http api server for given address port and http handler
func NewServer(address string, port int, handler http.Handler) APIServer {
server := apiServer{
make(chan error, 1),
Expand All @@ -59,7 +59,7 @@ func (server *apiServer) Stop() {
server.listener.Close()
}

// Wait method waits for http server to finish handling requets (i.e. when Stop() was called)
// Wait method waits for http server to finish handling requests (i.e. when Stop() was called)
func (server *apiServer) Wait() error {
return <-server.errorChannel
}
Expand Down
6 changes: 3 additions & 3 deletions utils/cancelable.go
Expand Up @@ -34,7 +34,7 @@ type CancelChannel chan int
var ErrRequestCancelled = errors.New("request was cancelled")

// InvokeOnSuccess decorator takes callback function with single val as parameter and returns CleanupCallback function, which calls
// given callback only if no error was returned by blocking request (i.e. good when cleanup is need only when blocking request succeded but was canceled before)
// given callback only if no error was returned by blocking request (i.e. good when cleanup is need only when blocking request succeeded but was canceled before)
func InvokeOnSuccess(callback func(interface{})) CleanupCallback {
return func(val interface{}, err error) {
if err == nil {
Expand All @@ -61,7 +61,7 @@ func NewCancelable() Cancelable {
}
}

// Cancel method signal all created requests to exit immediatelly
// Cancel method signal all created requests to exit immediately
func (c Cancelable) Cancel() {
c.cancelAction()
}
Expand All @@ -71,7 +71,7 @@ func noCleanup(interface{}, error) {

}

// CancelableRequest represents object which calls blocking action and can be cancelled - i.e. Call returns early with posibility cleanup blocking action
// CancelableRequest represents object which calls blocking action and can be cancelled - i.e. Call returns early with possibility cleanup blocking action
// results if needed
type CancelableRequest struct {
canceled CancelChannel
Expand Down