-
Notifications
You must be signed in to change notification settings - Fork 17
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
Add new method for removing by ref #78
Conversation
Also fixed tests (replaced container with registry)
@@ -47,7 +47,7 @@ func newClient() *Client { | |||
r.Register("Thread", Thread{}) | |||
r.Register("Board", Board{}) | |||
r.Done() | |||
c, e := NewClient(NewClientConfig(), skyobject.NewContainer(r)) | |||
c, e := NewClient(NewClientConfig(), r) |
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.
This one.
skyobject.NewContainer
Now require DB as a parameter and return *container
(surprise)
But client wants registry.
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.
here
break line on 80th
data/data_test.go
Outdated
@@ -364,8 +364,7 @@ func TestData_DelFeed(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func testRootError(t *testing.T, re *RootError, rp *RootPack, | |||
pk cipher.PubKey) { | |||
func testRootError(t *testing.T, re *RootError, rp *RootPack, pk cipher.PubKey) { |
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.
80th symbol is boundary. Fuck wide screens, Fuck horizontal scroll.
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.
lol seriously? I have split screen with two textmate windows and it still wider then 80 symbols :)
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.
81
func testRootError(t *testing.T, re *RootError, rp *RootPack, pk cipher.PubKey) {
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.
So close :))
data/data_test.go
Outdated
@@ -364,7 +364,8 @@ func TestData_DelFeed(t *testing.T) { | |||
}) | |||
} | |||
|
|||
func testRootError(t *testing.T, re *RootError, rp *RootPack, pk cipher.PubKey) { | |||
func testRootError(t *testing.T, re *RootError, rp *RootPack, | |||
pk cipher.PubKey) { |
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.
Oh, sorry, it was breaking my folding
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.
That's all right.
Guys, what about those network errors? |
@tectiv3 |
@logrusorgru yeah, I got that, that is pretty much obvious. My question was why and where? Cause I didn't use any connections. My code is at the higher abstraction level. Hence the question. It wasn't there before that registry -> container change. So I'm asking is it related? |
Show me the code. |
well, it's up there ^ |
|
Also fixed tests (replaced container with registry)
PASS ok github.com/skycoin/cxo/node 110.829s
But now every test have this:
Might be related to my fix for container for registry replacement?