Skip to content

Commit

Permalink
correct remaining warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bpholt committed Mar 14, 2024
1 parent 18820d3 commit 90ad4f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import com.dwolla.util.async.twitter._
import com.twitter.util.{Closable, Future}
import natchez.Trace

import scala.language.reflectiveCalls

/**
* Build a Finagle Thrift client using the given Thrift
* method-per-endpoint algebra and the given destination. Optionally,
Expand Down Expand Up @@ -40,7 +38,7 @@ object TracedThriftClient {
*/
def apply[Alg[_[_]] <: AnyRef {def asClosable: Closable}] = new PartiallyAppliedThriftClient[Alg]()

class PartiallyAppliedThriftClient[Alg[_[_]] <: AnyRef {def asClosable: Closable}] private[TracedThriftClient](val dummy: Unit = ()) extends AnyVal {
class PartiallyAppliedThriftClient[Alg[_[_]] <: AnyRef {def asClosable: Closable}] private[TracedThriftClient](val dummy: Boolean = false) extends AnyVal {
/**
* @param name the local service name to be set on the Zipkin tracer
* @param dest the destination whence the Thrift interface is being served.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ class ZipkinTracerConfig(val host: SocketAddress[_],
this(
SocketAddress(host"127.0.0.1", port"9411"),
alwaysSample,
false,
tlsEnabled = false,
localServiceName,
true,
compressionEnabled = true,
"zipkin",
"/api/v2/spans"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ import com.dwolla.util.async.twitter._
import com.twitter.finagle.Thrift
import com.twitter.util.{Closable, Future}

import scala.language.reflectiveCalls

object ThriftClient {
def apply[Alg[_[_]] <: AnyRef {def asClosable: Closable}] = new PartiallyAppliedThriftClient[Alg]()

class PartiallyAppliedThriftClient[Alg[_[_]] <: AnyRef {def asClosable: Closable}] private[ThriftClient] (val dummy: Unit = ()) extends AnyVal {
class PartiallyAppliedThriftClient[Alg[_[_]] <: AnyRef {def asClosable: Closable}] private[ThriftClient] (val dummy: Boolean = false) extends AnyVal {
def apply[G[_] : Async](dest: String)
(implicit
AlgR: Alg[ReaderT[Future, Alg[Future], *]],
Expand Down

0 comments on commit 90ad4f1

Please sign in to comment.