Skip to content

WithMetadata报错 #73

@skeletongo

Description

@skeletongo

如果etc.yaml没有设置metadata,node初始化后opts.metadata会被设置为nil,使用WithMetadata会报错

panic: assignment to entry in nil map

goroutine 1 [running]:
maps.Copy[...](0x0, 0xc000388ae0)
C:/Program Files/Go/src/maps/maps.go:64 +0xe5
github.com/dobyte/due/v2/cluster/node.WithMetadata.func1(0xc000a00580)
C:/Users/dell/go/pkg/mod/github.com/dobyte/due/[email protected]/cluster/node/options.go:165 +0x45

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions