Skip to content

Commit

Permalink
meta things and get rid of old relayer tests that don\'t work here.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Nov 8, 2023
1 parent 487b84c commit 270096d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 185 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: test every commit
on:
- push
- pull_request

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
with:
go-version-file: ./go.mod
- run: go test ./...
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# khatru, a relay framework [![docs badge](https://img.shields.io/badge/docs-reference-blue)](https://pkg.go.dev/github.com/fiatjaf/khatru#Relay)

[![Run Tests](https://github.com/fiatjaf/khatru/actions/workflows/test.yml/badge.svg)](https://github.com/fiatjaf/khatru/actions/workflows/test.yml)
[![Go Reference](https://pkg.go.dev/badge/github.com/fiatjaf/khatru.svg)](https://pkg.go.dev/github.com/fiatjaf/khatru)
[![Go Report Card](https://goreportcard.com/badge/github.com/fiatjaf/khatru)](https://goreportcard.com/report/github.com/fiatjaf/khatru)

Khatru makes it easy to write very very custom relays:

- custom event or filter acceptance policies
Expand Down
2 changes: 1 addition & 1 deletion examples/exclusive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)

relay.RejectEvent = append(relay.RejectEvent, plugins.PreventTooManyIndexableTags(10))
relay.RejectFilter = append(relay.RejectFilter, plugins.NoPrefixFilters, plugins.NoComplexFilters)
relay.RejectFilter = append(relay.RejectFilter, plugins.NoComplexFilters)

relay.OnEventSaved = append(relay.OnEventSaved, func(ctx context.Context, event *nostr.Event) {
})
Expand Down
93 changes: 0 additions & 93 deletions start_test.go

This file was deleted.

91 changes: 0 additions & 91 deletions util_test.go

This file was deleted.

0 comments on commit 270096d

Please sign in to comment.