int/resourcestore: fix comment about Put
Older version of this code used to have a goroutine for each resource,
which is no longer the case, so remove the obsoleted part of the doc.
It is already described elsewhere how the resource is becoming stale
and removed.
@@ -106,11 +106,10 @@ func (rc *ResourceStore) Get(name string) string {
return r.resource.ID()
}
-// Put takes a unique resource name (retrieved from the client request, not generated by the server)
+// Put takes a unique resource name (retrieved from the client request, not generated by the server),
// a newly created resource, and functions to clean up that newly created resource.
-// It adds the Resource to the ResourceStore, as well as starts a go routine that is responsible for cleaning up the
-// resource if the server has not gotten another request for it (i.e. if Get has not been called).
-// Put expects `name`s passed to it to be unique. If a duplicate `name` is detected, it returns an error.
+// It adds the Resource to the ResourceStore. It expects name to be unique, and
+// returns an error if a duplicate name is detected.
func (rc *ResourceStore) Put(name string, resource IdentifiableCreatable, cleanupFuncs []func()) error {
rc.Lock()
defer rc.Unlock()
