-
Notifications
You must be signed in to change notification settings - Fork 48
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
Remove unused jsm.go
dependency and configureNATSCLI
logic.
#699
Conversation
This commit cleans up the code by removing the unused `jsm.go` module and the `configureNATSCLI` function, which relied on it. The change reduces unnecessary dependencies and simplifies the `LoadParams` logic, improving maintainability. Signed-off-by: Alberto Ricart <[email protected]>
The removed code creates issues for nats cli. Any reasons why it was added there? |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh C comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ugh IDEA - let me do a PR to change all of them.
@@ -355,33 +354,6 @@ func (p *LoadParams) configureNSCEnv() error { | |||
return nil | |||
} | |||
|
|||
func (p *LoadParams) configureNATSCLI() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for background, I want this gone because it's causing some weird dependency issues with new nats auth
behaviours - so @wallyqs what was this for and I can add similar functionality to nats auth
?
Also we cant call Select here to change peoples selected contexts its just rude and unsafe, so for now just remove the whole lot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This commit cleans up the code by removing the unused
jsm.go
module and theconfigureNATSCLI
function, which relied on it. The change reduces unnecessary dependencies and simplifies theLoadParams
logic, improving maintainability.