panic reflect Value SetMapIndex value of type etf Atom is not assignab

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
panic: reflect.Value.SetMapIndex: value of type etf.Atom is not assignable to type string
goroutine 36 [running]:
reflect.Value.assignTo(0x5d0500, 0xc000252130, 0x98, 0x62410a, 0x19, 0x5d1540, 0x0, 0xc000283a10, 0x410c19, 0xc000283a90)
/usr/local/go/src/reflect/value.go:2339 +0x437
reflect.Value.SetMapIndex(0x5de340, 0xc0002525e0, 0x195, 0x5d0500, 0xc000252130, 0x98, 0x5d1540, 0xc000252140, 0x98)
/usr/local/go/src/reflect/value.go:1596 +0xae
github.com/halturin/ergonode/etf.setMapMapField(0xc000140120, 0x5de340, 0xc0002525e0, 0x195, 0x6668c0, 0x5de340, 0xc0002525e0, 0xc00013c1c0)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:334 +0xf8
github.com/halturin/ergonode/etf.setMapField(0xc000140120, 0x5de340, 0xc0002525e0, 0x195, 0x6668c0, 0x5de340, 0x10, 0x5de340)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:271 +0x2c9
github.com/halturin/ergonode/etf.termIntoStruct(0x5e60c0, 0xc000140120, 0x5de340, 0xc0002525e0, 0x195, 0xc0002525e0, 0x195)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:202 +0x5c8
github.com/halturin/ergonode/etf.setListField(0xc0001400f0, 0x2, 0x3, 0x5cd440, 0xc000276420, 0x197, 0x6668c0, 0x5cd440, 0xc000276420, 0x20)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:260 +0x211
github.com/halturin/ergonode/etf.termIntoStruct(0x5da920, 0xc000276300, 0x5cd440, 0xc000276420, 0x197, 0x197, 0x5cd440)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:204 +0x75a
github.com/halturin/ergonode/etf.TermIntoStruct(0x5da920, 0xc000276300, 0x5c4120, 0xc000276420, 0xc000249e50, 0x1)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/etf/etf.go:176 +0xc8
main.genServer.HandleInfo(0xc00012c000, 0xc000094270, 0x26, 0x100000004, 0x0, 0x0, 0x0, 0x1, 0x0, 0xc00014c030, ...)
/home/juise/code/hbr/hbr-xdp/erliface.go:78 +0x1f6
github.com/halturin/ergonode.(*GenServer).ProcessLoop.func4(0x661b80, 0xc00014e0a0, 0xc00014c030, 0xc00014e0a0, 0xc000142018)
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/gen_server.go:118 +0x7a
created by github.com/halturin/ergonode.(*GenServer).ProcessLoop
/home/juise/code/hbr/hbr-xdp/vendor/pkg/mod/git.ringcentral.com/hbr/third-party/ergonode@v0.0.0-20190428185559-ae6df327bebf/gen_server.go:117 +0x84c