remove old instance ref
This commit is contained in:
@@ -13,9 +13,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type PoolServer struct {
|
type PoolServer struct {
|
||||||
pod_name string
|
pod_name string
|
||||||
pool GrainPool
|
pool GrainPool
|
||||||
klarnaClient *KlarnaClient
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewPoolServer(pool GrainPool, pod_name string) *PoolServer {
|
func NewPoolServer(pool GrainPool, pod_name string) *PoolServer {
|
||||||
@@ -219,7 +218,7 @@ func (s *PoolServer) HandleConfirmation(w http.ResponseWriter, r *http.Request,
|
|||||||
if orderId == "" {
|
if orderId == "" {
|
||||||
return fmt.Errorf("orderId is empty")
|
return fmt.Errorf("orderId is empty")
|
||||||
}
|
}
|
||||||
order, err := s.klarnaClient.GetOrder(orderId)
|
order, err := KlarnaInstance.GetOrder(orderId)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user