Skip to content

Commit

Permalink
stats: make TagsBuilder initializer public (#1477)
Browse files Browse the repository at this point in the history
Description: make TagsBuilder initializer public
Risk Level: low
Testing: unit/ci
Signed-off-by: Jingwei Hao <[email protected]>
Signed-off-by: JP Simard <[email protected]>
  • Loading branch information
jingwei99 authored and jpsim committed Nov 28, 2022
1 parent 67934d4 commit 8eceb59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile/library/swift/stats/TagsBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ public class TagsBuilder: NSObject {

// Only explicitly implemented to work around a swiftinterface issue in Swift 5.1. This can be
// removed once envoy is only built with Swift 5.2+
override required init() {
public override required init() {
self.tags = [String: String]()
super.init()
}

/// Initialize a new builder. Subclasses should provide their own public convenience initializers.
/// Initialize a new builder with a tag map.
///
/// - parameter tags: The tags with which to start.
required init(tags: [String: String]) {
public required init(tags: [String: String]) {
self.tags = tags
super.init()
}
Expand Down

0 comments on commit 8eceb59

Please sign in to comment.