Skip to content

Commit

Permalink
Fix Soundness + update contributors (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschlegel authored Jun 29, 2023
1 parent 9268027 commit 77d0b0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ needs to be listed here.
### Contributors

- Felix Schlegel <[email protected]>
- Felix Schlegel <[email protected]>
- Franz Busch <[email protected]>
- FranzBusch <[email protected]>
- SHILPEE GUPTA <[email protected]>
- Yim Lee <[email protected]>
- mr-swifter <[email protected]>

**Updating this list**

Expand Down
4 changes: 2 additions & 2 deletions Sources/SwiftKafka/RDKafka/RDKafkaConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct RDKafkaConfig {
typealias LoggingClosure = (Int32, UnsafePointer<CChar>, UnsafePointer<CChar>) -> Void
var loggingClosure: LoggingClosure?

init() { }
init() {}
}

/// Create a new `rd_kafka_conf_t` object in memory and initialize it with the given configuration properties.
Expand Down Expand Up @@ -140,7 +140,7 @@ struct RDKafkaConfig {
let loggingClosure: RDKafkaConfig.CapturedClosures.LoggingClosure = { level, fac, buf in
// Mapping according to https://en.wikipedia.org/wiki/Syslog
switch level {
case 0 ... 2: /* Emergency, Alert, Critical */
case 0...2: /* Emergency, Alert, Critical */
logger.critical(Logger.Message(stringLiteral: String(cString: buf)), source: String(cString: fac))
case 3: /* Error */
logger.error(Logger.Message(stringLiteral: String(cString: buf)), source: String(cString: fac))
Expand Down

0 comments on commit 77d0b0e

Please sign in to comment.