Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
3a9c2cac
Commit
3a9c2cac
authored
Aug 27, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
abca1b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
go/neo/client/client.go
go/neo/client/client.go
+7
-3
No files found.
go/neo/client/client.go
View file @
3a9c2cac
...
@@ -106,16 +106,20 @@ func (c *Client) Load(xid zodb.Xid) (data []byte, tid zodb.Tid, err error) {
...
@@ -106,16 +106,20 @@ func (c *Client) Load(xid zodb.Xid) (data []byte, tid zodb.Tid, err error) {
cell
:=
cellv
[
rand
.
Intn
(
len
(
cellv
))]
cell
:=
cellv
[
rand
.
Intn
(
len
(
cellv
))]
stor
:=
c
.
node
.
NodeTab
.
Get
(
cell
.
NodeUUID
)
stor
:=
c
.
node
.
NodeTab
.
Get
(
cell
.
NodeUUID
)
if
stor
==
nil
{
if
stor
==
nil
{
// XXX?
panic
(
0
)
// XXX
}
}
//Slink := c.Connect(stor) // single-flight Dial; puts result into stor.Link (XXX ok?)
//Slink := c.Connect(stor) // single-flight Dial; puts result into stor.Link (XXX ok?)
Slink
:=
stor
.
Connect
()
// single-flight Dial; puts result into stor.Link (XXX ok?)
//Slink := stor.Connect() // single-flight Dial; puts result into stor.Link (XXX ok?)
Slink
:=
stor
.
Link
// XXX stub
// TODO maintain conn pool so every new GetObject request does not
// TODO maintain conn pool so every new GetObject request does not
// spawn new goroutine on server
// spawn new goroutine on server
// Sconn = stor.GetConn()
// Sconn = stor.GetConn()
// XXX defer if ok stor.PutConn(Sconn)
// XXX defer if ok stor.PutConn(Sconn)
Sconn
:=
Slink
.
NewConn
()
Sconn
,
err
:=
Slink
.
NewConn
()
if
err
!=
nil
{
panic
(
0
)
// XXX
}
req
:=
neo
.
GetObject
{
Oid
:
xid
.
Oid
}
req
:=
neo
.
GetObject
{
Oid
:
xid
.
Oid
}
if
xid
.
TidBefore
{
if
xid
.
TidBefore
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment