Skip to content

Commit

Permalink
Inline pong as mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
bahner committed Feb 23, 2024
1 parent beca341 commit 52e05d5
Show file tree
Hide file tree
Showing 28 changed files with 314 additions and 346 deletions.
16 changes: 2 additions & 14 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,14 @@
]
},
{
"name": "Launch Pong",
"name": "Launch Foo",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"args": [
"-c",
"~/.ma/pong.yaml"
],
"console": "integratedTerminal"
},
{
"name": "Baren",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"args": [
"-c",
"/home/bahner/.ma/baren.yaml"
"~/.ma/foo.yaml"
],
"console": "integratedTerminal"
},
Expand Down
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ $(NAME): tidy

clean:
rm -f $(NAME)
make -C cmd/pong clean
make -C cmd/relay clean

console:
Expand All @@ -44,9 +43,6 @@ distclean: clean
down:
docker-compose down

pong:
make -C cmd/pong

relay:
make -C cmd/relay go-ma-relay

Expand All @@ -56,8 +52,7 @@ image:
--build-arg "BUILD_IMAGE=$(BUILD_IMAGE)" \
.

install: relay pong $(NAME)
sudo make -C cmd/pong install
install: relay $(NAME)
sudo make -C cmd/relay install
sudo install -m755 $(NAME) $(DESTDIR)$(PREFIX)/bin/$(NAME)

Expand Down
4 changes: 3 additions & 1 deletion TODO
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ Add a connect command to connect to a specific host directly, eg:

/connect relay

### Pinning
We should probably handle pinning. Maybe not for DID Docs, as they have timestamp, so wont be reused.


## BUGS

handle topics better. Messages aren't always coming through.
2 changes: 0 additions & 2 deletions cmd/pong/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions cmd/pong/Makefile

This file was deleted.

10 changes: 0 additions & 10 deletions cmd/pong/README.md

This file was deleted.

12 changes: 0 additions & 12 deletions cmd/pong/TODO

This file was deleted.

43 changes: 0 additions & 43 deletions cmd/pong/envelopes.go

This file was deleted.

102 changes: 0 additions & 102 deletions cmd/pong/main.go

This file was deleted.

120 changes: 0 additions & 120 deletions cmd/pong/messages.go

This file was deleted.

2 changes: 2 additions & 0 deletions config/actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ func InitActor() {
}

if viper.GetBool("publish") && keyset_string != "" {
fmt.Print("Publishing identity to IPFS...")
err := publishIdentityFromKeyset(keyset)
if err != nil {
log.Warnf("config.initActor: %v", err)
}
fmt.Println("done.")
}

viper.Set("keyset", keyset)
Expand Down
Loading

0 comments on commit 52e05d5

Please sign in to comment.