Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
0c3e5a3c
Commit
0c3e5a3c
authored
7 months ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Stop the network follower when deleting a cMix instance
parent
41e965d7
No related branches found
No related tags found
1 merge request
!703
Some changes for Phoenixx
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/cmix.go
+2
-1
2 additions, 1 deletion
bindings/cmix.go
with
2 additions
and
1 deletion
bindings/cmix.go
+
2
−
1
View file @
0c3e5a3c
...
@@ -221,10 +221,11 @@ func GetCMixInstance(instanceID int) (*Cmix, error) {
...
@@ -221,10 +221,11 @@ func GetCMixInstance(instanceID int) (*Cmix, error) {
}
}
func
DeleteCmixInstance
(
instanceID
int
)
error
{
func
DeleteCmixInstance
(
instanceID
int
)
error
{
_
,
ok
:=
cmixTrackerSingleton
.
tracked
[
instanceID
]
cmix
,
ok
:=
cmixTrackerSingleton
.
tracked
[
instanceID
]
if
!
ok
{
if
!
ok
{
return
errors
.
Errorf
(
"no cmix instance id: %d"
,
instanceID
)
return
errors
.
Errorf
(
"no cmix instance id: %d"
,
instanceID
)
}
}
cmix
.
StopNetworkFollower
()
cmixTrackerSingleton
.
delete
(
instanceID
)
cmixTrackerSingleton
.
delete
(
instanceID
)
return
nil
return
nil
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment