Skip to content

Commit

Permalink
[Refactor] rename FluentInterfaceOptions to Builderable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Grady Zhuo committed Jun 23, 2024
1 parent cde7686 commit 9dd800a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 37 deletions.
33 changes: 0 additions & 33 deletions Sources/EventStoreDB/utils/FluentInterface.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
import Foundation
import SwiftProtobuf

package protocol FluentInterfaceOptions: Sendable {}
package protocol Builderable: Sendable {}

extension FluentInterfaceOptions {
package func withCopy(handler: (_ options: inout Self) -> Void) -> Self {
extension Builderable {
package func withCopy(handler: (_ copied: inout Self) -> Void) -> Self {
var copiedSelf = self
handler(&copiedSelf)
return copiedSelf
}
}

package protocol EventStoreOptions: GRPCBridge, FluentInterfaceOptions {
package protocol EventStoreOptions: GRPCBridge, Builderable {
func build() -> UnderlyingMessage
}

0 comments on commit 9dd800a

Please sign in to comment.