mirror of
				https://github.com/Telecominfraproject/wlan-cloud-owprov.git
				synced 2025-10-31 02:27:52 +00:00 
			
		
		
		
	Compare commits
	
		
			13 Commits
		
	
	
		
			version_up
			...
			release/v4
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 1d8df22092 | ||
|   | d109c0cd7e | ||
|   | 8b06a65d5b | ||
|   | 3e7c72831f | ||
|   | 069b60a6c6 | ||
|   | 1832d2c1cb | ||
|   | 0ef1dad4dc | ||
|   | d001c44a81 | ||
|   | fe6023b18d | ||
|   | 1bd1cf0af6 | ||
|   | 020ff8641a | ||
|   | 342c6900ef | ||
|   | a549024a29 | 
							
								
								
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
								
							| @@ -21,7 +21,7 @@ defaults: | |||||||
|  |  | ||||||
| jobs: | jobs: | ||||||
|   docker: |   docker: | ||||||
|     runs-on: ubuntu-20.04 |     runs-on: ubuntu-latest | ||||||
|     env: |     env: | ||||||
|       DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io |       DOCKER_REGISTRY_URL: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||||
|       DOCKER_REGISTRY_USERNAME: ucentral |       DOCKER_REGISTRY_USERNAME: ucentral | ||||||
|   | |||||||
| @@ -1,5 +1,5 @@ | |||||||
| cmake_minimum_required(VERSION 3.13) | cmake_minimum_required(VERSION 3.13) | ||||||
| project(owprov VERSION 3.2.1) | project(owprov VERSION 4.1.0) | ||||||
|  |  | ||||||
| set(CMAKE_CXX_STANDARD 17) | set(CMAKE_CXX_STANDARD 17) | ||||||
|  |  | ||||||
| @@ -242,4 +242,3 @@ target_link_libraries(owprov PUBLIC | |||||||
|         CppKafka::cppkafka |         CppKafka::cppkafka | ||||||
|         resolv |         resolv | ||||||
|         fmt::fmt) |         fmt::fmt) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -9,7 +9,7 @@ fullnameOverride: "" | |||||||
| images: | images: | ||||||
|   owprov: |   owprov: | ||||||
|     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owprov |     repository: tip-tip-wlan-cloud-ucentral.jfrog.io/owprov | ||||||
|     tag: main |     tag: v4.1.0 | ||||||
|     pullPolicy: Always |     pullPolicy: Always | ||||||
| #    regcred: | #    regcred: | ||||||
| #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | #      registry: tip-tip-wlan-cloud-ucentral.jfrog.io | ||||||
|   | |||||||
| @@ -67,9 +67,9 @@ namespace OpenWifi { | |||||||
|  |  | ||||||
|         bool Get(const char *key, std::vector<std::string> &Value) { |         bool Get(const char *key, std::vector<std::string> &Value) { | ||||||
|             if(Registry_->has(key) && !Registry_->isNull(key) && Registry_->isArray(key)) { |             if(Registry_->has(key) && !Registry_->isNull(key) && Registry_->isArray(key)) { | ||||||
|                 auto Arr = Registry_->get(key); |                 auto pArr = Registry_->getArray(key); | ||||||
|                 for(const auto &v:Arr) { |                 for(const auto &v : *pArr) { | ||||||
|                     Value.emplace_back(v); |                     Value.emplace_back(v.toString()); | ||||||
|                 } |                 } | ||||||
|                 return true; |                 return true; | ||||||
|             } |             } | ||||||
|   | |||||||
| @@ -118,6 +118,10 @@ namespace OpenWifi { | |||||||
| 						Producer.poll((std::chrono::milliseconds) 0); | 						Producer.poll((std::chrono::milliseconds) 0); | ||||||
| 					} | 					} | ||||||
| 				} | 				} | ||||||
|  | 		                if (Queue_.size() == 0) { | ||||||
|  | 					// message queue is empty, flush all previously sent messages | ||||||
|  | 					Producer.flush(); | ||||||
|  | 				} | ||||||
| 			} catch (const cppkafka::HandleException &E) { | 			} catch (const cppkafka::HandleException &E) { | ||||||
| 				poco_warning(Logger_, | 				poco_warning(Logger_, | ||||||
| 							 fmt::format("Caught a Kafka exception (producer): {}", E.what())); | 							 fmt::format("Caught a Kafka exception (producer): {}", E.what())); | ||||||
| @@ -126,10 +130,6 @@ namespace OpenWifi { | |||||||
| 			} catch (...) { | 			} catch (...) { | ||||||
| 				poco_error(Logger_, "std::exception"); | 				poco_error(Logger_, "std::exception"); | ||||||
| 			} | 			} | ||||||
| 			if (Queue_.size() == 0) { |  | ||||||
| 				// message queue is empty, flush all previously sent messages |  | ||||||
| 				Producer.flush(); |  | ||||||
| 			} |  | ||||||
| 			Note = Queue_.waitDequeueNotification(); | 			Note = Queue_.waitDequeueNotification(); | ||||||
| 		} | 		} | ||||||
| 		Producer.flush(); | 		Producer.flush(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user