mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
refactor(cli): use codersdk for provisioner types (#9508)
This change removes one use of `coderd/database` from the slim binary and more correctly uses codersdk instead of database or provisionerd packages. No size change (yet). Ref: #9380
This commit is contained in:
@@ -29,12 +29,6 @@ import (
|
||||
"github.com/coder/retry"
|
||||
)
|
||||
|
||||
// IsMissingParameterErrorCode returns whether the error is a missing parameter error.
|
||||
// This can indicate to consumers that they should check parameters.
|
||||
func IsMissingParameterErrorCode(code string) bool {
|
||||
return code == runner.MissingParameterErrorCode
|
||||
}
|
||||
|
||||
// Dialer represents the function to create a daemon client connection.
|
||||
type Dialer func(ctx context.Context) (proto.DRPCProvisionerDaemonClient, error)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user