feat: add debouncing to provisionerd rpc calls (#5198)

This commit is contained in:
Colin Adler
2022-12-01 16:54:53 -06:00
committed by GitHub
parent 5457dd0c65
commit ab3b3d5fca
14 changed files with 123 additions and 46 deletions

View File

@ -643,8 +643,8 @@ func compressHandler(h http.Handler) http.Handler {
return cmp.Handler(h)
}
// CreateInMemoryProvisionerDaemon is an in-memory connection to a provisionerd. Useful when starting coderd and provisionerd
// in the same process.
// CreateInMemoryProvisionerDaemon is an in-memory connection to a provisionerd.
// Useful when starting coderd and provisionerd in the same process.
func (api *API) CreateInMemoryProvisionerDaemon(ctx context.Context, debounce time.Duration) (client proto.DRPCProvisionerDaemonClient, err error) {
clientSession, serverSession := provisionersdk.MemTransportPipe()
defer func() {