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

cannot use *shell.PubSubRecord as type pubsub.Record #5

Open
camstuart opened this issue Dec 11, 2018 · 3 comments
Open

cannot use *shell.PubSubRecord as type pubsub.Record #5

camstuart opened this issue Dec 11, 2018 · 3 comments

Comments

@camstuart
Copy link

During a go get I get the error:

pubsub/ipfs-api/pubsub.go:15:2: shell.PubSubRecord.Data is a field, not a method
pubsub/ipfs-api/pubsub.go:15:2: cannot use *shell.PubSubRecord as type pubsub.Record in return argument:
        *shell.PubSubRecord does not implement pubsub.Record (missing Data method)

Generated by this line:

return s.sub.Next()

Is it not:

return s.Next()

instead?

@chiragg6
Copy link

Hi @camstuart , I am facing the same issue. Were you able to find a fix to this?

It looks like the project is deserted. But maybe if @keks is interested in helping a bit, we could spin this into active development.

@keks
Copy link
Owner

keks commented Mar 19, 2019

@camstuart No, that wouldn't make much sense because it would just recurse infinitely.

I have the hunch that the API of go-ipfs-shell changed since I wrote this package. Unfortunately I currently don't really have time to update it to use the new one. I would be happy to merge PRs, though.

@camstuart
Copy link
Author

I'm afraid I didn't solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants