From d0ae445877f50641587e50e683e51214057c3092 Mon Sep 17 00:00:00 2001 From: Alex Russell-Saw Date: Tue, 29 Oct 2024 14:25:15 +0000 Subject: [PATCH] adjust default poll interval, remove Go comment from Swift packaging --- flipt-client-swift/Sources/FliptClient/FliptClient.swift | 2 +- package/ffi/main.go | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/flipt-client-swift/Sources/FliptClient/FliptClient.swift b/flipt-client-swift/Sources/FliptClient/FliptClient.swift index 00d95bc3..535cd93c 100644 --- a/flipt-client-swift/Sources/FliptClient/FliptClient.swift +++ b/flipt-client-swift/Sources/FliptClient/FliptClient.swift @@ -14,7 +14,7 @@ public class FliptClient { url: String = "", authentication: Authentication? = nil, ref: String = "", - updateInterval: Int = 0, + updateInterval: Int = 120, fetchMode: FetchMode = .polling) throws { self.namespace = namespace self.url = url diff --git a/package/ffi/main.go b/package/ffi/main.go index 43f02df8..4b42f122 100644 --- a/package/ffi/main.go +++ b/package/ffi/main.go @@ -655,9 +655,6 @@ func swiftBuild(ctx context.Context, client *dagger.Client, hostDirectory *dagge return fmt.Errorf("tag %q must start with %q", tag, tagPrefix) } - // because of how Go modules work, we need to create a new repo that contains - // only the go client code. This is because the go client code is in a subdirectory - // we also need to copy the ext directory into the tag of this new repo so that it can be used targetRepo := os.Getenv("TARGET_REPO") if targetRepo == "" { targetRepo = "https://github.com/flipt-io/flipt-client-swift.git"