hallgren/eventsourcing

GetGlobalEvents seams to panic when called on the repository

hallgren opened this issue · 1 comments

runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0xc020180380 stack=[0xc020180000, 0xc040180000]
fatal error: stack overflow

runtime stack:
runtime.throw(0x6866d1, 0xe)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1069 +0x7ed
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f

goroutine 1 [running]:
github.com/hallgren/eventsourcing.(*Repository).GlobalEvents(0xc04017ff00, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/morganh/code/go/pkg/mod/github.com/hallgren/eventsourcing@v0.0.16/repository.go:103 +0x86 fp=0xc020180390 sp=0xc020180388 pc=0x54f8a6
github.com/hallgren/eventsourcing.(*Repository).GlobalEvents(0xc04017ff00, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/morganh/code/go/pkg/mod/github.com/hallgren/eventsourcing@v0.0.16/repository.go:104 +0x3f fp=0xc0201803e0 sp=0xc020180390 pc=0x54f85f
github.com/hallgren/eventsourcing.(*Repository).GlobalEvents(0xc04017ff00, 0x4, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/home/morganh/code/go/pkg/mod/github.com/hallgren/eventsourcing@v0.0.16/repository.go:104 +0x3f fp=0xc020180430 sp=0xc0201803e0 pc=0x54f85f

Fixed by: #72