Where does protoregistry register the files? And how to unregister?
// Initialize the file descriptor object.
fd, err := protodesc.NewFile(pb, protoregistry.GlobalFiles)
if err != nil { return errors.Wrapf(err, "NewFile") }
// and finally register it.
return protoregistry.GlobalFiles.RegisterFile(fd)
So I ran my app and successfully registered my proto files. I shutdown my
IDE and came back to run the app again. It panics and says that the proto
files were registered already. I don’t know where that internal map is. Is
it stored locally on my computer?
I already terminated the app and yet it says that the proto are already
registered when I ran the app again.That makes me think it is in some
permanent registry. Hopefully, locally only so I can just delete it.
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/d66c2e23-688d-4680-820b-db4f1733048cn%40googlegroups.com.