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

WithInterceptors panics without any interceptors #2

Open
bgpat opened this issue Jun 4, 2019 · 0 comments
Open

WithInterceptors panics without any interceptors #2

bgpat opened this issue Jun 4, 2019 · 0 comments

Comments

@bgpat
Copy link
Contributor

bgpat commented Jun 4, 2019

Why

I ran example code, so below error occurs:

panic: runtime error: index out of range

goroutine 1 [running]:
github.com/izumin5210/pubee.WithInterceptors.func1.1(0x1647380, 0xc0002fe930, 0xc0002fe960, 0xc0000d8ea0)
	/Users/bgpat/src/github.com/izumin5210/pubee/option.go:93 +0x175
github.com/izumin5210/pubee.(*engineImpl).Publish(0xc0002fe8d0, 0x1647380, 0xc0002fe930, 0x14a0f00, 0xc0001ca4b0, 0x0, 0x0, 0x0)
	/Users/bgpat/src/github.com/izumin5210/pubee/engine.go:68 +0x342
main.main()
	/Users/bgpat/wantedly/pubsub-test/main.go:48 +0x560
exit status 2

What

It seems WithInterceptors needs one or more interceptors.

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

1 participant