Skip to content

Commit 6930555

Browse files
committed
fix
1 parent a02825e commit 6930555

File tree

6 files changed

+1
-104
lines changed

6 files changed

+1
-104
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ COPY --from=builder /app/cassandra/schema.sql /usr/local/bin
1515
COPY --from=builder /app/dist/janus /bin/janus
1616
RUN chmod a+x /bin/janus && \
1717
mkdir -p /etc/janus/apis && \
18-
mkdir -p /etc/janus/auth && \
19-
mkdir -p /etc/config
20-
18+
mkdir -p /etc/janus/auth
2119

2220
RUN apt-get update && apt-get install -y --no-install-recommends \
2321
ca-certificates \

assets/apis/example_SingleDefinition.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

assets/auth/auth.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

pkg/cache/cache.go

Lines changed: 0 additions & 46 deletions
This file was deleted.

pkg/kafka/factConsumer.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package kafka
33
import (
44
"context"
55
"encoding/json"
6-
"fmt"
76
"github.com/hellofresh/janus/pkg/models"
87
"github.com/segmentio/kafka-go"
98
log "github.com/sirupsen/logrus"
@@ -17,18 +16,13 @@ func StartFactConsumer(kafkaAddr, topic, dlqtopic, consumerGroup string) {
1716
if err != nil {
1817
return err
1918
}
20-
fmt.Println("starting ping facts...")
21-
2219
var role models.Role
2320

2421
err = json.Unmarshal(*fact.Object, &role)
2522
if err != nil {
2623
log.Println(err)
2724
}
2825

29-
fmt.Println(role)
30-
31-
fmt.Println("end of pinging gateway...")
3226
return nil
3327
},
3428
func(msg Message, inerr error) {
@@ -45,12 +39,6 @@ func StartFactConsumer(kafkaAddr, topic, dlqtopic, consumerGroup string) {
4539
return
4640
}
4741

48-
func factToCache(fact *models.Fact) *models.Fact {
49-
return &models.Fact{
50-
Object: fact.Object,
51-
}
52-
}
53-
5442
type KafkaProducer struct {
5543
kafkaWriter *kafka.Writer
5644
}

pkg/server/server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package server
33
import (
44
"context"
55
"fmt"
6-
"github.com/hellofresh/janus/pkg/cache"
76
"net"
87
"net/http"
98
"time"
@@ -38,13 +37,11 @@ type Server struct {
3837
webServer *web.Server
3938
profilingEnabled bool
4039
profilingPublic bool
41-
cache *cache.Cache
4240
}
4341

4442
// New creates a new instance of Server
4543
func New(opts ...Option) *Server {
4644
s := Server{
47-
cache: cache.NewCache(),
4845
configurationChan: make(chan api.ConfigurationChanged, 100),
4946
stopChan: make(chan struct{}, 1),
5047
}

0 commit comments

Comments
 (0)