github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/sub/client/cleanup.go (about)

     1  package client
     2  
     3  import (
     4  	"github.com/Cloud-Foundations/Dominator/lib/hash"
     5  	"github.com/Cloud-Foundations/Dominator/lib/srpc"
     6  	"github.com/Cloud-Foundations/Dominator/proto/sub"
     7  )
     8  
     9  func cleanup(client *srpc.Client, hashes []hash.Hash) error {
    10  	request := sub.CleanupRequest{hashes}
    11  	var reply sub.CleanupResponse
    12  	return client.RequestReply("Subd.Cleanup", request, &reply)
    13  }