diff --git a/pool-server.go b/pool-server.go index 6eb25a5..7e19bf9 100644 --- a/pool-server.go +++ b/pool-server.go @@ -13,9 +13,8 @@ import ( ) type PoolServer struct { - pod_name string - pool GrainPool - klarnaClient *KlarnaClient + pod_name string + pool GrainPool } func NewPoolServer(pool GrainPool, pod_name string) *PoolServer { @@ -219,7 +218,7 @@ func (s *PoolServer) HandleConfirmation(w http.ResponseWriter, r *http.Request, if orderId == "" { return fmt.Errorf("orderId is empty") } - order, err := s.klarnaClient.GetOrder(orderId) + order, err := KlarnaInstance.GetOrder(orderId) if err != nil { return err