Cleanup unused struct field
Remove `Pool` field from `CreateInstanceParams` struct, because this is given as a separate parameter to the `CreateInstance` function.
This commit is contained in:
parent
775dd51782
commit
e2ada6d1e3
6 changed files with 1 additions and 11 deletions
|
|
@ -26,7 +26,7 @@ import (
|
|||
)
|
||||
|
||||
func (s *sqlDatabase) CreateInstance(ctx context.Context, poolID string, param params.CreateInstanceParams) (params.Instance, error) {
|
||||
pool, err := s.getPoolByID(ctx, param.Pool)
|
||||
pool, err := s.getPoolByID(ctx, poolID)
|
||||
if err != nil {
|
||||
return params.Instance{}, errors.Wrap(err, "fetching pool")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue