Skip to content

Commit

Permalink
tilelink: don't unnecessarily copy certain client parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
hcook committed May 4, 2020
1 parent f05147b commit e66cafc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/scala/tilelink/Broadcast.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ class TLBroadcast(lineBytes: Int, numTrackers: Int = 4, bufferless: Boolean = fa

val node = TLAdapterNode(
clientFn = { cp =>
cp.v1copy(
clients = Seq(TLMasterParameters.v1(
name = "TLBroadcast",
sourceId = IdRange(0, 1 << log2Ceil(cp.endSourceId*4)))),
echoFields = cp.echoFields,
requestFields = cp.requestFields,
responseKeys = cp.responseKeys)
cp.v1copy(clients = Seq(TLMasterParameters.v1(
name = "TLBroadcast",
sourceId = IdRange(0, 1 << log2Ceil(cp.endSourceId*4)))))
},
managerFn = { mp =>
mp.v1copy(
Expand Down

0 comments on commit e66cafc

Please sign in to comment.