multi: always alias swapserverrpc import for use as a package #446
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
looprpc
package is used for client and server protos, despite their being in different directories (github.com/lightninglabs/loop/looprpc
andgithub.com/lightninglabs/loop/swapserverrpc
). This is required to maintain backwards compatibility, because the package is used as part of the URI in grpc.[1] Use of mismatched package path/names (eg, import path
github.com/lightninglabs/loop/swapserverrpc
forlooprpc
package) causes issues when loop is imported as a package (as is the case in the server's itests) - the import can't be found.[2] Likewise, the presence of two
looprpc
packages (as is the case inloopd/swapclient_server.go
) also confuses modules when we importloopd
(to runloopd
as a package, rather than a standalone binary in itests).This PR updates loop to alias
swapserverrpc
withlooprpc
everywhere to address [1] and uses distinct aliases inloopd
to address [2].Pull Request Checklist
release_notes.md
if your PR contains major features, breaking changes or bugfixes