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

persistence protobuf update version #808

Closed
Liberxue opened this issue Feb 20, 2023 · 0 comments
Closed

persistence protobuf update version #808

Liberxue opened this issue Feb 20, 2023 · 0 comments

Comments

@Liberxue
Copy link
Contributor

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

func (p *Provider) InitState(actorName string, eventNum, eventIndexAfterSnapshot int) {
	for i := 0; i < eventNum; i++ {
		p.providerState.PersistEvent(
			actorName,
			i,
			&Message{protoMsg: protoMsg{state: "state" + strconv.Itoa(i)}},
		)
	}
	p.providerState.PersistSnapshot(
		actorName,
		eventIndexAfterSnapshot,
		&Snapshot{protoMsg: protoMsg{state: "state" + strconv.Itoa(eventIndexAfterSnapshot-1)}},
	)
}
cannot use &(Message literal) (value of type *Message) as protoreflect.ProtoMessage value in argument to p.providerState.PersistEvent: *Message does not implement protoreflect.ProtoMessage (missing method ProtoReflect) (compile)

persistence

 command-line-arguments
./main.go:28:4: cannot use &Message{…} (value of type *Message) as type protoreflect.ProtoMessage in argument to p.providerState.PersistEvent:
        *Message does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
./main.go:34:3: cannot use &Snapshot{…} (value of type *Snapshot) as type protoreflect.ProtoMessage in argument to p.providerState.PersistSnapshot:
        *Snapshot does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
./main.go:64:21: cannot use &Snapshot{…} (value of type *Snapshot) as type protoreflect.ProtoMessage in argument to a.PersistSnapshot:
        *Snapshot does not implement protoreflect.ProtoMessage (missing ProtoReflect method)
./main.go:73:21: cannot use msg (variable of type *Message) as type protoreflect.ProtoMessage in argument to a.PersistReceive:
        *Message does not implement protoreflect.ProtoMessage (missing ProtoReflect method)

Additional context
Add any other context or screenshots about the feature request here.

rogeralsing added a commit that referenced this issue Feb 21, 2023
_examples  persistence protobuf update version #808
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