update
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m48s

This commit is contained in:
matst80
2024-11-10 17:01:22 +01:00
parent 15d966aaad
commit 7d7983b3ef
2 changed files with 8 additions and 0 deletions

View File

@@ -126,6 +126,12 @@ func (p *RemoteGrainPool) findOrCreateGrain(id CartId) *RemoteGrain {
return grain
}
func (p *RemoteGrainPool) Delete(id CartId) {
p.mu.Lock()
delete(p.grains, id)
p.mu.Unlock()
}
func (p *RemoteGrainPool) Process(id CartId, messages ...Message) ([]byte, error) {
var result []byte
var err error