Skip to content
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

object:refactor data encode error #5426

Merged
merged 2 commits into from
Sep 5, 2018
Merged

object:refactor data encode error #5426

merged 2 commits into from
Sep 5, 2018

Conversation

kjzz
Copy link
Contributor

@kjzz kjzz commented Sep 5, 2018

License: MIT
Signed-off-by: Kejie Zhang [email protected]

@kjzz kjzz requested a review from Kubuxu as a code owner September 5, 2018 06:10
@kjzz
Copy link
Contributor Author

kjzz commented Sep 5, 2018

hey @schomatis, when i reading the ipfs repo,i have found some coding not very elegant.And i have do modify some code.Can you help me review this?

License: MIT
Signed-off-by: Kejie Zhang <[email protected]>
@@ -43,6 +40,12 @@ type Object struct {
Links []Link `json:"Links,omitempty"`
}

var (
// ErrObjectTooLarge is returned when too much data was read from stdin. current limit 2m
ErrObjectTooLarge = errors.New("input object was too large. limit is 2mbytes")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't actually used, can probably just remove it

@kjzz
Copy link
Contributor Author

kjzz commented Sep 5, 2018

@magik6k remove it ,please help me review it.Thx

@@ -43,6 +40,10 @@ type Object struct {
Links []Link `json:"Links,omitempty"`
}

var (
ErrDataEncoding = errors.New("unkown data field encoding")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go fmt ./...

@kjzz kjzz force-pushed the zkj/refactor branch 2 times, most recently from dde8d9c to 7c08a22 Compare September 5, 2018 09:49
License: MIT
Signed-off-by: Kejie Zhang <[email protected]>
@kjzz
Copy link
Contributor Author

kjzz commented Sep 5, 2018

Hello @magik6k ,i have fmt code .But it still did not pass. can you help me look at this wrong ci.Maybe it has some wrong about ci.
https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fgo-ipfs/detail/PR-5426/6/pipeline
Thx a lot.

@kjzz
Copy link
Contributor Author

kjzz commented Sep 5, 2018

@magik6k thx for restarting ci.And the pr has passed required checks.Please help me review it.thank u a lot

Copy link
Member

@magik6k magik6k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@magik6k magik6k added the RFM label Sep 5, 2018
@Stebalien Stebalien merged commit 2dca8c2 into ipfs:master Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants