Subversion Repositories SmartDukaan

Rev

Rev 10199 | Rev 10201 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10199 Rev 10200
Line 72... Line 72...
72
				}
72
				}
73
			}
73
			}
74
			for(FlipkartItem flipkartItem:flipkartItems){
74
			for(FlipkartItem flipkartItem:flipkartItems){
75
				flipkartItemsMap.put(flipkartItem.getItem_id(),flipkartItem);
75
				flipkartItemsMap.put(flipkartItem.getItem_id(),flipkartItem);
76
			}
76
			}
-
 
77
			retry = true;
-
 
78
			List<Item> aliveItems = null;
-
 
79
			while(retry){
-
 
80
				try{
77
			List<Item> aliveItems = catalogServiceClient.getAllAliveItems();
81
					aliveItems = catalogServiceClient.getAllAliveItems();
-
 
82
					retry = false;
-
 
83
				}
-
 
84
				catch(Exception e){
-
 
85
					catalogServiceClient = new CatalogClient().getClient();
-
 
86
				}
-
 
87
			}
78
			for(in.shop2020.model.v1.catalog.Item thriftItem:aliveItems){
88
			for(in.shop2020.model.v1.catalog.Item thriftItem:aliveItems){
79
				aliveItemsMap.put(thriftItem.getId(), thriftItem);
89
				aliveItemsMap.put(thriftItem.getId(), thriftItem);
80
			}
90
			}
81
 
91
 
82
		} catch (TException e) {
92
		} catch (TException e) {