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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
e80f805e
Commit
e80f805e
authored
Mar 15, 2024
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Return the bindings object, which is guaranteed to be indings complianat, not the xxdk object
parent
2985caeb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bindings/cmix.go
+3
-3
3 additions, 3 deletions
bindings/cmix.go
with
3 additions
and
3 deletions
bindings/cmix.go
+
3
−
3
View file @
e80f805e
...
...
@@ -208,16 +208,16 @@ func (c *Cmix) EKVSet(key string, value []byte) error {
// cMix Tracker //
////////////////////////////////////////////////////////////////////////////////
// GetCMixInstance gets the
xxdk
.Cmix for the given Cmix instanceID.
// GetCMixInstance gets the
bindings
.Cmix for the given Cmix instanceID.
//
// This function is not used by Go bindings and is intended to be used by other
// wrappers.
func
GetCMixInstance
(
instanceID
int
)
(
*
xxdk
.
Cmix
,
error
)
{
func
GetCMixInstance
(
instanceID
int
)
(
*
Cmix
,
error
)
{
instance
,
ok
:=
cmixTrackerSingleton
.
tracked
[
instanceID
]
if
!
ok
{
return
nil
,
errors
.
Errorf
(
"no cmix instance id: %d"
,
instanceID
)
}
return
instance
.
api
,
nil
return
instance
,
nil
}
// cmixTracker is a singleton used to keep track of extant Cmix objects,
...
...
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