mirror of
				https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
				synced 2025-11-04 12:37:54 +00:00 
			
		
		
		
	Update README.md
Should there not be a flush at the end? In my case, the application quit without the message ending up on Kafka.
This commit is contained in:
		@@ -43,6 +43,7 @@ int main() {
 | 
				
			|||||||
    // Produce a message!
 | 
					    // Produce a message!
 | 
				
			||||||
    string message = "hey there!";
 | 
					    string message = "hey there!";
 | 
				
			||||||
    producer.produce(MessageBuilder("my_topic").partition(0).payload(message));
 | 
					    producer.produce(MessageBuilder("my_topic").partition(0).payload(message));
 | 
				
			||||||
 | 
					    producer.flush();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user