We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following line causes a panic if the underlying type of the substrate.Message is a slice:
substrate.Message
https://github.com/uw-labs/substrate/blob/master/sync_adapter_sink.go#L98-L100
panic: runtime error: comparing uncomparable type writer.message goroutine 19 [running]: github.com/uw-labs/substrate.(*synchronousMessageSinkAdapter).loop.func2(0x0, 0x0) /home/johan/go/pkg/mod/github.com/uw-labs/[email protected]/sync_adapter_sink.go:98 +0x301 github.com/uw-labs/sync/rungroup.(*group).Go.func1(0xc00041c000, 0xc00041c060) /home/johan/go/pkg/mod/github.com/uw-labs/[email protected]/rungroup/rungroup.go:55 +0x59 created by github.com/uw-labs/sync/rungroup.(*group).Go /home/johan/go/pkg/mod/github.com/uw-labs/[email protected]/rungroup/rungroup.go:52 +0x66 exit status 2
For example, using a type like:
type message []byte func (m message) Data() []byte { return []byte(m) }
The text was updated successfully, but these errors were encountered:
Workaround is to use a pointer to the data.
Sorry, something went wrong.
No branches or pull requests
The following line causes a panic if the underlying type of the
substrate.Message
is a slice:https://github.com/uw-labs/substrate/blob/master/sync_adapter_sink.go#L98-L100
For example, using a type like:
The text was updated successfully, but these errors were encountered: