Skip to content

Commit

Permalink
refactored RCCoderConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
aslanyanhaik committed Apr 17, 2020
1 parent a3777c0 commit 3e47bf2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Sources/Public/RCCoderConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ import Foundation

public struct RCCoderConfiguration {

public let version: Version
public let version = Version.v1
public let maxMessageCount: Int
public let bitesPerSymbol: Int
public let characters: [Character]

public init(version: Version = .v1, characters: String) {
self.version = version
public init(characters: String) {
var charactersArray = characters.map({$0})
charactersArray.append(version.startingCharacter)
charactersArray.append(contentsOf: version.emptyCharacters)
Expand Down

0 comments on commit 3e47bf2

Please sign in to comment.