itering/scale.go

multi-thread support

tasinco opened this issue · 3 comments

Can you put put a mutex around TypeRegistery/registerSiType and make the library thread safe?

https://github.com/itering/scale.go/search?q=TypeRegistry&type=code
https://github.com/itering/scale.go/search?q=registeredSiType
more??

@tasinco OK,thank you for the feedback, I will add it as soon

Can you put put a mutex around TypeRegistery/registerSiType and make the library thread safe?

https://github.com/itering/scale.go/search?q=TypeRegistry&type=code https://github.com/itering/scale.go/search?q=registeredSiType more??

Did you figure out how to make this thread-safe yourself? Any other variables we need to protect?

@tasinco This issue has been fixed. If you have any questions, please tell me.