add reservations to the model
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"go.opentelemetry.io/contrib/bridges/otelslog"
|
||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||
"google.golang.org/protobuf/types/known/anypb"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
@@ -304,7 +305,7 @@ func (s *PoolServer) HandleReservations(ctx context.Context, cartId cart.CartId,
|
||||
}
|
||||
logger.InfoContext(ctx, "reserved item", "sku", item.Sku, "location", string(locationId), "expires at", end.String())
|
||||
span.End()
|
||||
item.ReservationEndsTime = end
|
||||
item.ReservationEndTime = timestamppb.New(end)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user