multi: Fix typos [skip ci]
This commit is contained in:
139 files changed
+254
-254
No files matched your search
@@ -36,7 +36,7 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
}
|
||||
|
||||
// Before we try to make the new service instance, we'll perform
|
||||
// some sanity checks on the arguments to ensure that they're useable.
|
||||
// some sanity checks on the arguments to ensure that they're usable.
|
||||
switch {
|
||||
case config.Manager == nil:
|
||||
return nil, nil, fmt.Errorf("Manager must be set to create " +
|
||||
|
||||
@@ -33,7 +33,7 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
}
|
||||
|
||||
// Before we try to make the new router service instance, we'll perform
|
||||
// some sanity checks on the arguments to ensure that they're useable.
|
||||
// some sanity checks on the arguments to ensure that they're usable.
|
||||
switch {
|
||||
case config.Router == nil:
|
||||
return nil, nil, fmt.Errorf("Router must be set to create " +
|
||||
|
||||
@@ -59,7 +59,7 @@ func newForwardInterceptor(server *Server, stream Router_HtlcInterceptorServer)
|
||||
}
|
||||
|
||||
// run sends the intercepted packets to the client and receives the
|
||||
// corersponding responses. On one hand it regsitered itself as an interceptor
|
||||
// corersponding responses. On one hand it registered itself as an interceptor
|
||||
// that receives the switch packets and on the other hand launches a go routine
|
||||
// to read from the client stream.
|
||||
// To coordinate all this and make sure it is safe for concurrent access all
|
||||
|
||||
@@ -132,7 +132,7 @@ type MissionControl interface {
|
||||
|
||||
// QueryRoutes attempts to query the daemons' Channel Router for a possible
|
||||
// route to a target destination capable of carrying a specific amount of
|
||||
// satoshis within the route's flow. The retuned route contains the full
|
||||
// satoshis within the route's flow. The returned route contains the full
|
||||
// details required to craft and send an HTLC, also including the necessary
|
||||
// information that should be present within the Sphinx packet encapsulated
|
||||
// within the HTLC.
|
||||
|
||||
@@ -666,7 +666,7 @@ func getMsatPairValue(msatValue lnwire.MilliSatoshi,
|
||||
return msatValue, nil
|
||||
}
|
||||
|
||||
// If we have no msatValue, we can just return our sate value even if
|
||||
// If we have no msatValue, we can just return our state value even if
|
||||
// it is zero, because it's impossible that we have mismatched values.
|
||||
if msatValue == 0 {
|
||||
return lnwire.MilliSatoshi(satValue * 1000), nil
|
||||
@@ -879,7 +879,7 @@ func (s *Server) SubscribeHtlcEvents(req *SubscribeHtlcEventsRequest,
|
||||
// requests to the caller.
|
||||
// Upon connection it does the following:
|
||||
// 1. Check if there is already a live stream, if yes it rejects the request.
|
||||
// 2. Regsitered a ForwardInterceptor
|
||||
// 2. Registered a ForwardInterceptor
|
||||
// 3. Delivers to the caller every √√ and detect his answer.
|
||||
// It uses a local implementation of holdForwardsStore to keep all the hold
|
||||
// forwards and find them when manual resolution is later needed.
|
||||
|
||||
@@ -36,7 +36,7 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
}
|
||||
|
||||
// Before we try to make the new signer service instance, we'll perform
|
||||
// some sanity checks on the arguments to ensure that they're useable.
|
||||
// some sanity checks on the arguments to ensure that they're usable.
|
||||
|
||||
switch {
|
||||
// If the macaroon service is set (we should use macaroons), then
|
||||
|
||||
@@ -37,7 +37,7 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
|
||||
// Before we try to make the new WalletKit service instance, we'll
|
||||
// perform some sanity checks on the arguments to ensure that they're
|
||||
// useable.
|
||||
// usable.
|
||||
switch {
|
||||
case config.MacService != nil && config.NetworkDir == "":
|
||||
return nil, nil, fmt.Errorf("NetworkDir must be set to " +
|
||||
|
||||
@@ -175,7 +175,7 @@ func (c *Handler) GetInfo(ctx context.Context,
|
||||
}
|
||||
|
||||
// isActive returns nil if the tower backend is initialized, and the Handler can
|
||||
// proccess RPC requests.
|
||||
// process RPC requests.
|
||||
func (c *Handler) isActive() error {
|
||||
if c.cfg.Active {
|
||||
return nil
|
||||
|
||||
@@ -34,7 +34,7 @@ func createNewSubServer(configRegistry lnrpc.SubServerConfigDispatcher) (
|
||||
}
|
||||
|
||||
// Before we try to make the new service instance, we'll perform
|
||||
// some sanity checks on the arguments to ensure that they're useable.
|
||||
// some sanity checks on the arguments to ensure that they're usable.
|
||||
switch {
|
||||
case config.Resolver == nil:
|
||||
return nil, nil, errors.New("a lncfg.TCPResolver is required")
|
||||
|
||||
Reference in new issue
Block a user